posts / how-i-can-i-find-my-server-path
How I Can I find My Server Path?
A one-line PHP snippet for printing a server's absolute filesystem path from the browser.
archived post — originally published 2010; code is DEFINITELY out of date.
Originally published on erikshosting.com. Archived here.
Sometimes it is difficult to locate your server path.
Drop this string into a .php file called ‘locate-path’ or something, and then navigate to it in a browser to see your full server path!
<p><?php echo $_SERVER['PATH_TRANSLATED'];?></p>