I need some help to get this working please!

Am trying to use the PEAR library titled "Date". It has a number of
classes/files included.

I put extracted the Date zip file into:
    \app\vendors

and put this at top of my controller:
    vendor("PEAR\Date\Date"); // This references file in path:
PEAR\Date\Date.php

I also had to modify the php.ini INCLUDE_DIR so that it found this
library, but now I get the error:

"Fatal error: Cannot redeclare class date in c:\Program Files\Apache
Group\Apache2\htdocs\vendors\PEAR\Date\Date.php on line 88"

There are a few require_once() calls inside the files that make up this
library and it seems that PHP doesn't realise they refer to the same
file, so what can I do??

My reason for using this is I need to do some date calculations in my
application.

any ideas?

Pat.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to