Last active
May 9, 2017 13:33
-
-
Save miclaus/eadb2f7e8d8971601d95386938b60d9e to your computer and use it in GitHub Desktop.
Use for finding fullpath of underlying .htpasswd
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 $dir; | |
?><br><?php | |
echo "PATH [{$_SERVER['PATH']}]"; | |
?><br><?php | |
echo "HTTP_HOST [{$_SERVER['HTTP_HOST']}]"; | |
?><br><?php | |
echo "SERVER_NAME [{$_SERVER['SERVER_NAME']}]"; | |
exit; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment