Rating: 2.6 / 5.0 (49 votes)
How Do I Set PHP Include_Path?
How do I set PHP include_path?
There are 2 ways you can set your 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:
Make an php.ini file in the public_html folder, and inside that file put the following on one line:
include_path = ".:/php/includes"