Database search, http headers

From: Date: Mon, 26 Mar 2001 17:33:29 +0000
Subject: Database search, http headers
Groups: php.windows 
Request: Send a blank email to php-windows+get-6303@lists.php.net to get a copy of this message
Hi again, a couple of questions if you have the time. I am having trouble writing the code to perform a search on a database. I have written some code which will search but only get case sensitive exact match results. Are there any functions or prewritten bits that would help here? Or can anyone point me in the right direction so I can code it myself? Another small problem is that I was working through a tutorial to authenticate users using HTTP headers, but I am getting the following error, Warning: Cannot add header information - headers already sent by (output started at C:\INetPub\WWWRoot\counter.php:5) in C:\INetPub\WWWRoot\counter.php on line 15 Warning: Cannot add header information - headers already sent by (output started at C:\INetPub\WWWRoot\counter.php:5) in C:\INetPub\WWWRoot\counter.php on line 16 With the code looking like this, if (!isset($PHP_AUTH_USER)) { header('WWW-Authenticate: Basic realm="My Private Stuff"'); header('HTTP/1.0 401 Unauthorized'); echo 'Authorization Required.'; exit; } I am running php4 on IIS on Windows NT Server. Can you help? Sorry this is such a long post, I didn't know who else to ask! Thanks again

« previous php.windows (#6303) next »