[thelist] PHP includes not recognizing root

Russell Griechen russgri at bellsouth.net
Sun Sep 7 20:21:54 CDT 2003


You may do a ...http://mydomain.com/phpinfo.php to see what version of Php
and it will also give you some settings in phpini ...
If it does not give results try...

//filename phpinfo.php

<?php

phpinfo();

?>
///upload to htdocs or public_html/  www or whatever.
and call it up

Russell Griechen
----- Original Message -----
From: "John Corry" <john at neoncowboy.com>
To: <thelist at lists.evolt.org>
Sent: Saturday, September 06, 2003 5:27 PM
Subject: RE: [thelist] PHP includes not recognizing root


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 !
>

--
* * 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