How to find your absolute path

From Joomla! Documentation

Revision as of 13:42, 2 August 2008 by Erdsiger (talk | contribs) (New page: Take notepad or any other text editor and insert: <source lang="php"> <?php $p = getcwd(); echo $p; ?> </source> save as detection.php (or first as txt and rename to detection.php) ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Take notepad or any other text editor and insert:

<?php
  $p = getcwd();
  echo $p;
?>

save as detection.php (or first as txt and rename to detection.php) and upload it to the root directory of your site with ftp. Run it as http://example.com/detection.php and you have your absolute path.