Home - Help & Support - Contact Us
    

How To Find Absolute Path Of File From Root On A Linux Web Server?

 The easiest way to find absolute path of file from root on a linux web-server is to use php.

 

  1. Create a file in the directory that you want to find the absolute path, name it apath.php
  2. Put the following code in that file.

<?php

echo 'The absolute path to this directory is <br><b>'.realpath(".").'</b>';

?>

  1. Direct your browser to the file. The absolute path should appear!

If you are too lazy to create the file, download the attachement of this question, place it in the directory you need absolute path for and run it from your browser.

Rated:NR/0 Votes
1788 Views
More Articles From General
More Articles From General
Print Article
Print
Share |
Comments, Questions & Reviews

Comments is currently disabled for this article!
Related Articles and Readings
What is the absolute path for my Linux hosting account?
This is the absolute path for your Linux hosting account: /home/content/1/2/3/username/html/ Where "/1/2/3/" are the first three letters of your user ...
What is the Absolute or Direct Path for my Windows ASP Hosting Account?
Within ASP/ASP.NET, you can use the function Server.MapPath("") to return the full path to your hosting account. If you create ...
Why does my Free Ad Supported hosted site not display correctly?
Your site will display content to the right or left of the ad banner if your HTML code uses absolute ...
Why I am getting a Horde error message?
If you are running a version of PHP prior to 4.3 on your dedicated or virtual dedicated hosting server, Horde ...
Why I am getting a Horde error message?
If you are running a version of PHP prior to 4.3 on your dedicated or virtual dedicated hosting server, Horde ...
The information provided in this article is for general information and/or the comments is the sole responsibility of their respective authors and does not necessarily reflect the opinion of zeronese.net does not endorse any article and/or comments published by our web users unless otherwise noted.