[thelist] php root server path

Eduardo Dominguez lalo at teligens.com
Fri Sep 13 16:15:01 CDT 2002


Tom Dell'Aringa wrote:
> Hi, trying to get my actual path on my server. I am using a shared
> hosting domain. I thought I saw this path when I was doing something
> else to get the pagename. I was using:
>
> $curpage = ($_SERVER['SCRIPT_NAME']);
>
> but this only gives me /pagename.php..not the full path..can I get
> that some way?


to find all the server variables available (with their current values)
write the following script and access it:

<?php
   phpinfo();
?>

There is one there that you can use, dont remember the name right now.





More information about the thelist mailing list