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. These were what I've tested with:
$ grep "CAS.php" example_*.php
example_db.php:include_once('CAS.php');
example_file.php:include_once('CAS.php');
example_gateway.php:include_once('CAS.php');
example_html.php:include_once('CAS.php');
example_lang.php:include_once('CAS.php');
example_logout.php:include_once('CAS.php');
example_proxy2.php:include_once('CAS.php');
example_proxy.php:include_once('CAS.php');
example_service.php:include_once('CAS.php');
example_session_proxy.php:include_once('CAS.php');
example_session_service.php:include_once('CAS.php');
example_simple.php:include_once('CAS.php');
Ciao, Michael.
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas