Hi Michael, On Thu, Aug 14, 2008 at 10:25 AM, Michael Ströder <[EMAIL PROTECTED]> wrote: > Brett Bieber wrote: >> Hi Michael, >> >>> I've used this command to install phpCAS (in one line): >>> >>> pear install >>> http://www.ja-sig.org/downloads/cas-clients/php/1.0.0/CAS-1.0.0.tgz >>> >>> But it didn't work because some modules were installed under >>> /usr/share/php5/PEAR/CAS/CAS/. >>> ^^^^ >>> I moved /usr/share/php5/PEAR/CAS/CAS.php to /usr/share/php5/PEAR/ and >>> /usr/share/php5/PEAR/CAS/CAS/* to /usr/share/php5/PEAR/CAS/ and now it >>> works. >> >>> Seems that something's wrong with this PEAR installation. Since I don't >>> know how it works I can't help by providing a patch though. >> >> The php CAS files are installed in CAS/CAS.php, and that's how you >> should include/require them. > > > > Which will work when you include the class using > > <?php > > require_once 'CAS/CAS.php'; > > Brett, thanks for your quick answer. > > Then the example scripts are wrong.
I've corrected the base install directory so for the next release require_once 'CAS.php'; will work. Originally other files were along side the CAS.php file, which was why I set it up to install all files to the /CAS/ directory. Pascal had re-arranged the files so that they followed the PEAR filesystem conventions, and I had not updated the install script to reflect this. The reason I didn't notice, is that all my files were used to require_once 'CAS/CAS.php';, so everything on my end still worked. :-) Thanks for pointing this out Michael. -- Brett Bieber http://saltybeagle.com/ _______________________________________________ Yale CAS mailing list [email protected] http://tp.its.yale.edu/mailman/listinfo/cas
