Page 1 of 1

Correct use of include_path in php.ini?

Posted: Thu Mar 20, 2008 2:00 pm
by PhpDog
I am running Apache server, with php as a loaded module. My script is situated in:

C:\Program Files\Apache Group\Apache2\htdocs\aruk\

and it needs to access another file, via 'include' in:

C:\Program Files\Apache Group\Apache2\htdocs\aruk\includes\

My script uses: 'include("./includes/config.php");'

In my php.ini file I have the include_path set to:

C:\Program Files\Apache Group\Apache2\htdocs\aruk\includes\

which isn't working for me. My script cannot locate the config.php file as it should.

What should my include_path be set to in php.ini in order for it to work correctly please?

Re: Correct use of include_path in php.ini?

Posted: Thu Mar 20, 2008 4:44 pm
by Ambush Commander
Prepend a ".;" to your include_path. The . ensures that your current path is searched too!