note 60784 deleted from features.http-auth by nlopess
| From: | nlopess@php.net | Date: | Mon, 16 Jan 2006 17:10:23 +0000 |
| Subject: | note 60784 deleted from features.http-auth by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-101933@lists.php.net to get a copy of this message | ||
Note Submitter: go dot luis at tiscali dot it
----
Someone would know how to give me the exact code to make to work on window that doesn't accept
PHP_AUTH_USER AND PHP_AUTH_PW
to modify the following:
<?php
if (!isset($_SERVER['PHP_AUTH_USER'])) {
header('WWW-Authenticate: Basic realm="Il mio realm"');
header('HTTP/1.0 401 Unauthorized');
echo 'Messaggio da inviare se si preme il tasto Cancel';
exit;
} else {
echo "<p>Ciao {$_SERVER['PHP_AUTH_USER']}.</p>";
echo "<p>Hai inserito {$_SERVER['PHP_AUTH_PW']} come tua
password.</p>";
}
?>
I apologize me but I only speak Italian, I have written with translator