[How To] Find Full Path Of Any Server Directory

Recently I was trying to install something on my server, installation part went smoothly when it comes to configure I was require to provide full path of installed directory. I provided a path but it failed as I was missing as I was typing :-


But in actual it was :-


If you to require to know full path of any directory on your server then all you need to do is upload a .PHP file on the directory of which path you want to know and point your browser to that file and you will get full path.


Just copy past following lines in a plain text editor and save file as path.php and upload it to the desired directory.

$dir = dirname(__FILE__);
echo "<p>Full path to this dir: " . $dir . "</p>";

That’s it, you will get full path in your browser.

Rahul Sharma

Rahul Sharma is a personal technology columnist and founder of TechnoArea, TroubleFixing & BloggingMayor He is a MBA guy by education and technology columnist by passion. He write's on some popular online tech magazines also.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.