Correcting error in example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@31003 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
James Moore 2000-08-23 16:55:45 +00:00
parent 2d0840f241
commit 1e8d8f349e

View file

@ -72,10 +72,10 @@
<programlisting role="php">
&lt;?php
function authenticate() {
Header( &quot;WWW-authenticate: basic realm='Test Authentication System'&quot;);
Header( &quot;HTTP/1.0 401 Unauthorized&quot;);
echo &quot;You must enter a valid login ID and password to access this resource\n&quot;;
exit;
Header( &quot;WWW-authenticate: basic realm=\&quot;Test Authentication System\&quot;&quot;);
Header( &quot;HTTP/1.0 401 Unauthorized&quot;);
echo &quot;You must enter a valid login ID and password to access this resource\n&quot;;
exit;
}
if(!isset($PHP_AUTH_USER) || ($SeenBefore == 1 &amp;&amp; !strcmp($OldAuth, $PHP_AUTH_USER)) ) {