HTTP Auth help required, please?

HTTP Auth help required, please?

am 14.11.2005 07:10:10 von jusa_98

--0-429775996-1131948610=:84679
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi,

I am having HUGE problems with the following:

HTTP Auth in the latest version of PHP.

Usernames are saved to a db but even when you enter a correct combination it fails. So I think it is best to start from scratch and try and get some code from people that are using the latest version of PHP. I am aware that there was huge problems with release 5.0 regarding this issue but when I put the updated code it it still fails.

So can someone provide me with the code I need. ???? So i can try and let you know how I go.

What I need is:
- PHP Code to input into my file.php file. (this code should include an error message if a bad user/pass is entered and a sucessful message, or a redirect url code. User / Password is stored to a db, db_name preferable is "users"
- PHP code should include the connection to the db also, saves me editing it later.

I have already setup a database already with the last code I have. So if the query needs editing I can do this. I just need something that works, and basic! I have been trying to get this to work for ages.

Please provide two login methods, than I can test both. Maybe it's the method of login that is causing me grief.

- HTTP popup box
- HTTP web-form

I have only tried the popup box method, never been able to get sucessfully logged in. Not tried the web-form method yet. If someone could whiz up some code for me or direct me to a url I can try and post back with the error I am getting.

Thanks!

Jerry


---------------------------------
Do you Yahoo!?
Listen to over 20 online radio stations and watch over 5000 music videos on Yahoo! Music.
--0-429775996-1131948610=:84679--

RE: HTTP Auth help required, please?

am 14.11.2005 09:46:02 von Denis Gerasimov

Hello,

1. Upgrade to the latest version (1.3.0rc3 beta), AFAIK 1.2.3 doesn't
support custom containers if you use this feature

2. allow_call_time_pass_reference must be 'on', otherwise it fails (produces
an error message)

3. turn error_reporting(E_ALL); and see if there are any notices/warnings

> Usernames are saved to a db but even when you enter a correct combination
> it fails. So I think it is best to start from scratch and try and get
> some code from people that are using the latest version of PHP. I am
> aware that there was huge problems with release 5.0 regarding this issue
> but when I put the updated code it it still fails.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php