- Kod: Zaznacz cały
AuthName "Centrum"
AuthType Basic
AuthUserFile /.htpasswd
Require valid-user
Wystarczy, że usunę .htaccess i strona działa. Co jest grane?
AuthName "Centrum"
AuthType Basic
AuthUserFile /.htpasswd
Require valid-user
<?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>";
?>