> -----Original Message-----
> From: KANM MD [mailto:[EMAIL PROTECTED]]
> Sent: 11 December 2002 08:55
> 
> Here is the code in a readable form (alterations for 
> security, simplicity
> ...)
> 
> if
> ((stristr($HTTP_SERVER_VARS["remote_address"],"XXX.YYY.ZZZ"))|
> |($pwprotect==
> 'password')) {
>  setcookie("pwprotect2","1",time()+300);
> }
> else {
>  echo "<form>(ASK FOR PASSWORD)</form>";
> }

Well, what's the *full* error message -- in there, it tells you not only
which line has the header call, but also exactly which line produced the
output that's causing the problem.

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

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

Reply via email to