Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
$_SERVER['PHP_AUTH_USER'] not working
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- $_SERVER['PHP_AUTH_USER'] not working
$_SERVER['PHP_AUTH_USER'] not working
20-01-2008 12:05 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi
Trying to use
to get username from htaccess login but it returns nothing. Same with $_SERVER['REMOTE_USER'] not working.
Any ideas
Trying to use
<?php echo $_SERVER['PHP_AUTH_USER'] ?>
to get username from htaccess login but it returns nothing. Same with $_SERVER['REMOTE_USER'] not working.
Any ideas
Message 1 of 2
(6,782 Views)
1 REPLY 1
Re: $_SERVER['PHP_AUTH_USER'] not working
20-01-2008 1:45 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Our CCGi service uses PHP as a CGI wrapper and is not installed as a module.
As per the PHP documentation, this specific feature is not available in this configuration.
http://uk.php.net/manual/en/features.http-auth.php
There are some minor workarounds which are available in the above link for CGI mode, however these are not available on CGI either, unless you do some other mod_rewrite work to make your site work.
As per the PHP documentation, this specific feature is not available in this configuration.
http://uk.php.net/manual/en/features.http-auth.php
There are some minor workarounds which are available in the above link for CGI mode, however these are not available on CGI either, unless you do some other mod_rewrite work to make your site work.
Message 2 of 2
(712 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- $_SERVER['PHP_AUTH_USER'] not working