Sometimes you need to know the full path to a file or directory.
For example, if you wanted to setup .htaccess authentication, you'd need to enter the full path into the .htpasswd file.
If you don't know the full path, and PHP is installed on the server, then you can easily have the server tell you the folder location!
This small PHP script shows the full path of the file (the folder where the file is currently located on the server) when viewed in a browser
Copy the code and paste it into a new file named pathtest.php. Either create the new file in your control panel, or create a local file and upload it via FTP -- either way is fine. Then view that file in your web browser (Firefox or Chroma is suggested, not MS IE). Example:
and you'll get something like this displayed in the browser:
That's an example of Linux.
Windows will be in a standard D:\vhosts\mysite.com\etc sort of location.
That's all you need.
When finished, for security purposes, delete that test file. You don't want to freely give hackers information about your site or server structure.
Hope that helps.