I downloaded xampp-win32-1.6.6a.zip from SourceForge, and unpacked the archive to C:/xampp.
The include_path in C:/xampp/apache/bin/php.ini is configured like this by default:
- Code: Select all
include_path = ".;\xampp\php\pear\"
I created a script to test PEAR, and the test failed because the DB class was not found, despite the fact that the PEAR directory is specified in the include_path.
I experimented with various configurations, and finnaly managed to get it working by moving the current directory option (.) from the beginning of the string to the end:
- Code: Select all
include_path = "\xampp\php\pear\;."
So, why doesn't PEAR work when the current directory is specified first, and does work when the current directory is specified last??
Thanks!