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

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

Script

In a PHP script you would add this line:

ini_set('include_path', '/new/include/path');

with the path you want to use.

php.ini

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.

NOTE: HostGator cannot know why you want nor need to change these settings. You are changing this at the advice of your web designer or the developer of your script. HostGator can only show you where to make the change.