PHP using Apache's document root (maybe)
Posted: Tue Jun 14, 2005 5:45 pm
Hi All,
I just installed PHP on an OpenBSD box and I'm having a funky problem with PHP accessing the filesystem.
I'm trying to include/require files using an absolute file path "/var/www/htdocs/funclib.php". However, I'm getting an error saying there is no such file.
When I include with "funclib.php" it works.
The weird thing is that when I include "/htdocs/funclib.php", it works fine. There is no directory called htdocs at the root of this server.
Any ideas? I've always used filesystem paths when including files, but this seems to be a bastard union of a filesystem and an Apache document root path.
Thanks!
I just installed PHP on an OpenBSD box and I'm having a funky problem with PHP accessing the filesystem.
I'm trying to include/require files using an absolute file path "/var/www/htdocs/funclib.php". However, I'm getting an error saying there is no such file.
When I include with "funclib.php" it works.
The weird thing is that when I include "/htdocs/funclib.php", it works fine. There is no directory called htdocs at the root of this server.
Any ideas? I've always used filesystem paths when including files, but this seems to be a bastard union of a filesystem and an Apache document root path.
Thanks!