/ Web Development / PHP

Article ID:  00101
Rating:  2.6 / 5.0 (49 votes)
Views:  8247
Created:  Jan-17-2003

Rating
Did you find this article helpful?


Print Article


How Do I Set PHP Include_Path?

Issue

How do I set PHP include_path?

Solution

There are 2 ways you can set your PHP include_path:

  1. 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: ini_set("include_path", ".:../:./include:../include");
  2. Make an php.ini file in the public_html folder, and inside that file put the following on one line: include_path = ".:/php/includes"

Related Articles