Changing the include path in a script or the custom php.ini file

all killer.  no filler.

If you need to change the include_path, you can do so in the script itself or in the custom php.ini file.


In a PHP script you would add this line:

ini_set(‘include_path’, ‘/new/include/path’);
with the path you want to use.


Alternatively, you can place this directive in the php.ini file.

The php.ini file is where you declare changes to your PHP settings. You can edit the existing php.ini, or create a new text file and name it php.ini.

If you need a php.ini file for your account, please contact us via phone or live chat. We are glad to create a complete file for you.
You would put something like:

include_path = “.:/usr/lib/php:/usr/local/lib/php”
modified with the path you want to use