How to find absolute path on a web-server (using PHP)
30th April 2007
When using PHP, the simplest way to find the absolute path of your files/folders on the server is by creating a simple path.php file with the following contents (click on the "Plain text" box header for copy-pasting):
Put the new file anywhere in the web-accessible folder on your server,
then just access that file from your favourite web-browser - and you'll have the absolute path shown to you.
Alternatively, you may use the following code:
This also should display the absolute path on your server.
April 12th, 2009 at 22:15
Thanks. It works.
April 19th, 2009 at 16:50
Thanks a lot
August 24th, 2009 at 22:20
Thanks it worked.