[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.

Some handpicked devices for you