How do I set PHP include_path?

Use the function ini_set(). For example if you wanted to set your PHP include_path to ".:../:./include:../include" then you would do this in your PHP code:

PHP Code:
 ini_set("include_path"".:../:./include:../include"); 


You can also use ini_set() to affect other PHP settings like auto_prepend_file, auto_append_file, error_reporting, etc.

  • 188 Users Found This Useful
Was this answer helpful?

Related Articles

How do I change timezone for PHP?

If you only want particular PHP scripts (and not shell or other cgi scripts) to use a specific...

Powered by WHMCompleteSolution