FAQ: Absolute Path (server path)

Locked
User avatar
molok
Joomla! Guru
Joomla! Guru
Posts: 622
Joined: Thu Aug 18, 2005 2:06 pm
Location: México
Contact:

FAQ: Absolute Path (server path)

Post by molok » Tue Aug 23, 2005 12:32 am

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
You do not have the required permissions to view the files attached to this post.
Last edited by mcsmom on Fri Sep 28, 2007 10:40 am, edited 1 time in total.
Tutoriales Joomla! - https://www.joomlamania.org
Wender & Wender - https://www.wender.com.mx

User avatar
guilliam
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4181
Joined: Thu Aug 18, 2005 10:27 am
Location: Sunny City Cebu, Philippines!
Contact:

Re: FAQ: Absolute Path (server path)

Post by guilliam » Wed Jan 25, 2006 3:53 pm

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
You do not have the required permissions to view the files attached to this post.
Last edited by guilliam on Wed Jan 25, 2006 7:08 pm, edited 1 time in total.
"I was one of those who wondered why people would pay so much $$$$ to do something that was so much fun!" -R. Harkrider, Fortran Code Engr.

http://www.joomlaconsultancy.net

User avatar
eskwire
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 118
Joined: Sun Sep 25, 2005 3:57 pm
Location: Atlanta, GA
Contact:

Re: FAQ: Absolute Path (server path)

Post by eskwire » Wed Oct 03, 2007 5:09 pm

Thanks for this it was just what the doctor ordered!

You saved me some headaches!

businessuser07
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Sat Sep 01, 2007 1:46 am

Re: FAQ: Absolute Path (server path)

Post by businessuser07 » Sat Nov 17, 2007 9:45 pm

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

mikeedy
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Jan 15, 2008 6:43 pm
Location: London
Contact:

Re: FAQ: Absolute Path (server path)

Post by mikeedy » Tue Jan 15, 2008 6:56 pm

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
Last edited by mikeedy on Tue Jan 15, 2008 7:00 pm, edited 1 time in total.


Locked

Return to “Tips & Tricks - Moving”