Forum Moderators: phranque
1/ What should change in Apache conf. to have the same in my localserver?
2/ What should I use if I want to include a file which is not in the www/include directory?
Tomda
1/ In php.ini file - just need to modify the include_path value
2/ It seems that the server first check for the include in the main include_path. If the file can not be found, it then looks for the file in the directory where you call the include.
a) include ("foo.txt") will look in the include_path.
b) include ("include/foo.txt") will look in the include folder in the directory where you call the include.
Finally, for those who need the include_path as a variable, you can use :
ini_get("include_path")
It works fine on my localhost, not sure it will work online.
Tomda