Re: cvs: phpdoc /en/features connection-handling.xml cookies.xml file-upload.xml http-auth.xml remote-files.xml

From: Date: Thu, 20 May 2004 22:51:56 +0000
Subject: Re: cvs: phpdoc /en/features connection-handling.xml cookies.xml file-upload.xml http-auth.xml remote-files.xml
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969360737@lists.php.net to get a copy of this message
> @@ -12,8 +12,8 @@ > input window. Once the user has filled in a username and a password, > the URL containing the PHP script will be called again with the > <link linkend="reserved.variables">predefined variables</link> > - <varname>PHP_AUTH_USER</varname>, <varname>PHP_AUTH_PW</varname>, > - and <varname>AUTH_TYPE</varname> set to the user name, password and > + <varname>$PHP_AUTH_USER</varname>, <varname>$PHP_AUTH_PW</varname>, > > + and <varname>$AUTH_TYPE</varname> set to the user name, password and > authentication type respectively. These predefined variables are found > in the <link linkend="reserved.variables.server">$_SERVER</link> and > <varname>$HTTP_SERVER_VARS</varname> arrays. Only "Basic" > authentication > @@ -68,8 +68,8 @@ > </note> > > <para> > - Instead of simply printing out <varname>PHP_AUTH_USER</varname> > - and <varname>PHP_AUTH_PW</varname>, as done in the above example, > + Instead of simply printing out <varname>$PHP_AUTH_USER</varname> > + and <varname>$PHP_AUTH_PW</varname>, as done in the above example, > you may want to check the username and password for validity. > Perhaps by sending a query to a database, or by looking up the > user in a dbm file. Leaving the $ off here is intentional, don't you think promoting register_globals = on in the manual is a bad thing? It mentions $_SERVER so there shouldn't be a problem. Regards, Philip

« previous php.doc (#969360737) next »