Re: Difficulty using PEAR library Date_calc

2006-06-06 Thread pat
Hi John, Your suggestion worked! I think you are spot-on about mixing vendor/require. Many thanks, I had given up getting that working. Perhaps this is something for Wiki or the tutorial? thanks Nate also! Pat. --~--~-~--~~~---~--~~ You received this message

Re: Difficulty using PEAR library Date_calc

2006-06-06 Thread John Zimmerman [gmail]
I was under the assumption (and looking at my PEAR installation I think I might be right) that Date.php should not be inside the 'Date' directory.On my installation it is outside (i.e. 'PEAR/Date.php' instead of 'PEAR/Date/Date.php') Also, with the PEAR libraries I had mixed results when trying to

Re: Difficulty using PEAR library Date_calc

2006-06-06 Thread pat
hi Nate, Yes, I did have a look. The structure of of this PEAR library is like this: Date\Date.php Date\Date\Span.php Date\Date\Calc.php Date\Date\Human.php Date\Date\Timezone.php Date.php is the high level library. The other libraries are the implementations. The problem is that Date.php does

Re: Difficulty using PEAR library Date_calc

2006-06-06 Thread nate
If the library is using require_once to load a file, it shouldn't matter how many times it gets loaded, since PHP won't actually load it more than once. This may seem a little obvious, but did you look to see what file is getting loaded on line 88, that's actually causing the error? It's possibl

Difficulty using PEAR library Date_calc

2006-06-06 Thread pat
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: