Click to See Complete Forum and Search --> : full directory path in Linux


_LOBO_
10-16-2003, 03:04 AM
Hi,
I need to know wich is my "full directory path" in the server to make run a script, my server is on Linux, there is a way that I can detect this path?

_LOBO_

_LOBO_
10-16-2003, 03:32 AM
I found the responce:


make a PHP phpinfo.php file with this inside:


<?
phpinfo();
?>


;)

pyro
10-16-2003, 12:16 PM
Or, this will get the full path to the current script:

<?PHP
echo $_SERVER['SCRIPT_FILENAME'];
?>