[thelist] PHP includes not recognizing root
John Corry
john at neoncowboy.com
Sat Sep 6 17:27:59 CDT 2003
I think it's because it sees '/' as root. Real root, not URL root.
You can add the path to URL root to your php ini php_include_path.
I think you can do this with .htaccess if you're on apache.
It would be something like:
php_value php_include_path /root/httpd/virtualhosts/user/public_html
That way, when you include() the file, the include function will look to the
path specified above as a starting point for the path you're trying to
include.
Note: this isn't tested, but I think it would work.
Hth,
John
> Why won't it allow me to just use "/etc" to return to the
> root and what do I need to do to fix it?
>
> Thanks
> Ken
> --
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip
> Harvester and archives of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !
>
More information about the thelist
mailing list