You may need to know the full path to a web directory, perhaps for a script that requires it or setting up a .htpasswd file.
- To do this, create a PHP file in the directory you want to find the path to.
- Put the following code into it:
<?php echo dirname(__FILE__); ?>
- Run the file on your web server and the full path will be displayed.