Greetings all,
My objective is (1) to be able to move a php file from the development machine to the deployment machine without having to change the file, (2) be able to include() a file from outside the web document tree
In my previous Apache/PHP on this miserable Win 98 system, I could use the default include_path setting in php.ini, then I could include a file with its full, absolute Unix-style path, as in include ("/usr/home/my_name/my_directory/my_file.php");
(For the sake of portability to the deployment server, I have a d:\usr\home\etc\ on this machine to match my deployment environment.)
Now, the include_path wants to default to ".;c:\php4\pear", and reverts to this if I set include_path to empty string or comment out the line. This would be fine if PHP would also let me include a file with the above notation, but it won't.
The only workaround I've come up with is to call ini_set("include_path","/usr/home/my_name/my_directory") before calling include("file.php").
Has anyone else come across this, or am I overlooking something?
Thanks