Last active
May 6, 2020 13:33
-
-
Save markbain/c1d41bd5c8e2a1da3a47fbc4351b5c32 to your computer and use it in GitHub Desktop.
Get the full path to a dir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dir = dirname(__FILE__); | |
echo "<p>Full path to this dir: " . $dir . "</p>"; | |
echo $_SERVER['DOCUMENT_ROOT']; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo $_SERVER['DOCUMENT_ROOT']; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment