FAQ: Absolute Path (server path)

A forum with Tips, tricks and small tutorials.

Moderators: mcsmom, unixboymd

Forum rules
Post Reply
User avatar
molok
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Thu Aug 18, 2005 2:06 pm
Location: Deutschland
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
Attachments
mod_admininfo.zip
(1 KiB) Downloaded 75 times
Last edited by mcsmom on Fri Sep 28, 2007 10:40 am, edited 1 time in total.
Do, or do not. There is no try...

Hidra Solutions - Soluciones a tu medida! -  http://www.hidrasolutions.net
Tutoriales Joomla! - http://www.joomlamania.org

User avatar
guilliam
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 159
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
Attachments
info.zip
(337 Bytes) Downloaded 149 times
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.
^If u read that in $GREEN, you clearly missed the HIGHLIGHTS!
http://www.joomlancers.com | http://www.joomlaconsultancy.net

User avatar
eskwire
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
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!
Find the Best Joomla Hosts at Joomla Hosting Reviews
Professional Joomla Websites at Atlanta Intown Web Design

businessuser07

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

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.


Post Reply