Last Updated: February 25, 2016
·
287
· jentanbernardus

A simple way to find your absolute path.

Sometimes an application may ask for an absolute path to a folder/file in your hosting account. Finding that can be hard – you often have to dig around on your host’s site or contact them for that info.

Here’s an easy way to do it: create a new .php file and upload this to the account.

<?php
  $path = getcwd();
  echo "Your absolute path is: ";
  echo $path;
?>

Then just navigate to that file in a web browser and it will display your absolute path.