How to find your absolute path: Difference between revisions
From Joomla! Documentation
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) ... |
Category added |
||
Line 9: | Line 9: | ||
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. | 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. | ||
[[Category:Tips and tricks]] | |||
[[Category:Tips and tricks 1.0]] | |||
[[Category:Tips and tricks 1.5]] |
Revision as of 13:43, 2 August 2008
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.