Skip to content

Instantly share code, notes, and snippets.

@louisnovick
Created May 17, 2016 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save louisnovick/0a754aeac9a534006523b85bc3261cd3 to your computer and use it in GitHub Desktop.
Save louisnovick/0a754aeac9a534006523b85bc3261cd3 to your computer and use it in GitHub Desktop.
What is the path to your .htpasswd file?
<?php
$dir = dirname(__FILE__);
echo "<p>Full path to this dir: " . $dir . "</p>";
echo "<p>Full path to a .htpasswd file in this dir: " . $dir . "/.htpasswd" . "</p>";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment