Page 1 of 1

FAQ: Absolute Path (server path)

Posted: Tue Aug 23, 2005 12:32 am
by molok
Little script to know your Absolute Path:

copy this script in any text editor and save as:

anyname.php

Code: Select all

<?php 
$path = getcwd();
echo "Your Absoluthe Path is: ";
echo $path;
?>
then upload this little script to yor root folder and point the browser to it...

cheers

EDIT:
Atached: Module Admin Info, install as any module and give the position cpanel then publish...



DISCUSSION HERE: http://forum.joomla.org/index.php/topic,36486.0.html

Re: FAQ: Absolute Path (server path)

Posted: Wed Jan 25, 2006 3:53 pm
by guilliam
you may want to check also the attached file. path plus phpinfo. just a quickie info for those on the go.

same, upload in your ftp, then call via browser.

- guilliam

Re: FAQ: Absolute Path (server path)

Posted: Wed Oct 03, 2007 5:09 pm
by eskwire
Thanks for this it was just what the doctor ordered!

You saved me some headaches!

Re: FAQ: Absolute Path (server path)

Posted: Sat Nov 17, 2007 9:45 pm
by businessuser07
hi ...

thanks for code/solution ...

When I did this, I got: "Your Absoluthe Path is: /"

This clearly is not the total path ... what is causing only "/" to display?

thanks!

D

Re: FAQ: Absolute Path (server path)

Posted: Tue Jan 15, 2008 6:56 pm
by mikeedy
You can also check the predefined server variables for example:

$_SERVER['DOCUMENT_ROOT'] will return your root directory

$_SERVER['SERVER_NAME'] will return your domain name