RE: [PHP-DB] PHP_AUTH_USER & .htaccess
| From: | Dwight Altman | Date: | Tue, 06 Mar 2007 15:49:37 +0000 |
| Subject: | RE: [PHP-DB] PHP_AUTH_USER & .htaccess | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-43199@lists.php.net to get a copy of this message | ||
Typo?
$_SERVER['|PHP_AUTH_USER'] != $_SERVER['PHP_AUTH_USER']
Notice the pipe "|" before "PHP_AUTH_USER"?
Regards,
Dwight
> -----Original Message-----
> From: Mike van Hoof [mailto:mike@medusa.nl]
> Sent: Tuesday, March 06, 2007 2:03 AM
> To: php-db@lists.php.net
> Subject: [PHP-DB] PHP_AUTH_USER & .htaccess
>
> Hello,
>
> I've got a really strange problem, and hope this is the right list to
> post to.
>
> I got a website with a login, which uses a .htaccess file for
> autentication. That part works like a charm. But when i want to read the
> loggin details with PHP, the variable $_SERVER['|PHP_AUTH_USER'] isn't
> set (in the directory where i logged into)
>
> when i go a directory back, and view a phpinfo() there i see
> |$_SERVER['|PHP_AUTH_USER']|| is set, so i do a phpinfo() in the
> directory with the .htaccess and it is gone.
>
> Had anyone ever had experience with this, because i can't find a solution.
>
> - Mike|