PHP include_path not working on Windows

I had added some directories to my include_path in php.ini and was still getting failed to open stream or file or directory not found.   It turns out that include_path should NOT have spaces in between the ; separator and the directory.

For example

Wrong:

include_path=".;D:wampbinphpphp5.2.5pear; D:wampbinphpphp5.2.5includes;

Right:

include_path=".;D:wampbinphpphp5.2.5pear;D:wampbinphpphp5.2.5includes;

Hope this helps someone
Topics: