[PHP-DOC] cvs: phpdoc /en/features http-auth.xml From: James Moore (James <email protected>)
Date: 08/23/00

jmoore Wed Aug 23 09:55:45 2000 EDT

  Modified files:
    /phpdoc/en/features http-auth.xml
  Log:
  Correcting error in example
  
Index: phpdoc/en/features/http-auth.xml
diff -u phpdoc/en/features/http-auth.xml:1.3 phpdoc/en/features/http-auth.xml:1.4
--- phpdoc/en/features/http-auth.xml:1.3 Wed Jul 5 03:24:17 2000
+++ phpdoc/en/features/http-auth.xml Wed Aug 23 09:55:45 2000
@@ -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)) ) {