Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-11-2004, 06:41 PM   #1
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Rep: Reputation: 30
PHP not reading PHP_AUTH_USER

I've gotten a web host who runs an apache server, and I'm hosting a website on it, using PHP. We're having problems getting it to work. Here's the message I sent them.
On our website, we use
header('WWW-Authenticate: Basic realm="My Realm"');
header('HTTP/1.0 401 Unauthorized');
to make a user authenticate on our site. I've tried this on my own apache server, apache 2 with PHP 5, and it works, and stores the variable into PHP_AUTH_USER, and PHP_AUTH_PW. On this server however, it is not, we have a check that sees if the person entered info into these vars, but on this server this always returns false.

Any ideas?

-Thanks in advance.
Does anyone know why it wouldn't be saving the info to PHP_AUTH_USER and PHP_AUTH_PW? I believe they're using Apache 1.(something) and PHP 4.

-Thanks in advance

EDIT: Apperantly the server is using something called ensim control panel. This is apperantly some sort of security tool. I'm not really familar with it, so any help would be appreciated.

Last edited by slackwarefan; 10-11-2004 at 06:44 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
reading mails using php shenil Linux - Newbie 4 05-28-2005 04:36 PM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
[php]Reading url [img] and [/img] hylke Programming 13 08-23-2004 01:58 PM
Prevent others from reading php source? Mikessu Linux - Networking 2 01-04-2004 06:51 PM
PHP - Reading data from multidimentional arrays and mail it. zyrtech Programming 8 08-09-2003 08:03 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration