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?
Correct use of include_path in php.ini?
Moderator: General Moderators
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
Re: Correct use of include_path in php.ini?
Prepend a ".;" to your include_path. The . ensures that your current path is searched too!