Re: HTTP_AUTH and SQL WHERE Clause

From: brew(at)theMode(dot)com
To: "Seader, Cameron" <CSeader(at)idahopower(dot)com>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: HTTP_AUTH and SQL WHERE Clause
Date: 2003-09-28 11:26:34
Message-ID: Pine.BSF.4.44.0309280719490.67430-100000@themode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Rod K 2003-09-28 13:53:35 Re: HTTP_AUTH and SQL WHERE Clause
Previous Message Seader, Cameron 2003-09-27 20:57:27 HTTP_AUTH and SQL WHERE Clause