PHP: How To Find Your Absolute Path
The absolute path (or full path) is a path that contains the root directory and all other sub directories required to get into the directory you wish to get to.
Step 01.
Copy the code under.
<?php echo $_SERVER['DOCUMENT_ROOT']; ?>
Step 02.
Now paste it on a new page in your editing program and save as absolutepath.php and upload it to you main directory using FTP.
Step 03.
Go to http://www.yoursite.com/absolutepath.php and all the text you can see on that page is your absolute path!