Re: HTTP_AUTH and SQL WHERE Clause - Mailing list pgsql-php

From brew@theMode.com
Subject Re: HTTP_AUTH and SQL WHERE Clause
Date
Msg-id Pine.BSF.4.44.0309280719490.67430-100000@themode.com
Whole thread Raw
In response to HTTP_AUTH and SQL WHERE Clause  ("Seader, Cameron" <CSeader@idahopower.com>)
List pgsql-php
Cameron......

> I am having trouble with some variables the $HTTP_AUTH_USER and
> $HTTP_AUTH_PW - now im useing PHP 4.3.3 and so i know that you have to
> use $_SERVER['HTTP_AUTH_USER'] and $_SERVER['HTTP_AUTH_PW'] instead of
> the old way now. Well i am having trouble with this script i have
> created to authenticate user name and password and verify against a
> postgresql database below.

Maybe someone else knows why, but I've had similiar problems.  What I do
now as a matter of course is to copy the php environment variables I want
to use over into regular variables in the begining of the script.

Also for debugging you could print them out early on, before using them
and see what values they hold.

later....

brew



pgsql-php by date:

Previous
From: "Seader, Cameron"
Date:
Subject: HTTP_AUTH and SQL WHERE Clause
Next
From: "Rod K"
Date:
Subject: Re: HTTP_AUTH and SQL WHERE Clause