Skip to content

Instantly share code, notes, and snippets.

@miclaus
Last active May 9, 2017 13:33
Show Gist options
  • Save miclaus/eadb2f7e8d8971601d95386938b60d9e to your computer and use it in GitHub Desktop.
Save miclaus/eadb2f7e8d8971601d95386938b60d9e to your computer and use it in GitHub Desktop.
Use for finding fullpath of underlying .htpasswd
<?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