X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 410EAD1B52B for ; Sun, 28 Sep 2003 11:27:09 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 24241-09 for ; Sun, 28 Sep 2003 08:26:41 -0300 (ADT) Received: from themode.com (themode.com [161.58.169.198]) by svr1.postgresql.org (Postfix) with ESMTP id F17D5D1B540 for ; Sun, 28 Sep 2003 08:26:36 -0300 (ADT) Received: from localhost (mode@localhost) by themode.com (8.12.9p1) id h8SBQYFe069212; Sun, 28 Sep 2003 07:26:35 -0400 (EDT) Date: Sun, 28 Sep 2003 07:26:34 -0400 (EDT) From: brew@theMode.com X-X-Sender: mode@themode.com To: "Seader, Cameron" Cc: pgsql-php@postgresql.org Subject: Re: HTTP_AUTH and SQL WHERE Clause In-Reply-To: <71B8A8BEC516CF46835CA629156CF21163F5CE@bedford.idacorp.local> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/82 X-Sequence-Number: 2359 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