RE: [PHP] Question Regarding Cookies, Sent Headers, and Functions That Return Values
| From: | Ford, Mike [LSS] | Date: | Wed, 11 Dec 2002 12:04:31 +0000 |
| Subject: | RE: [PHP] Question Regarding Cookies, Sent Headers, and Functions That Return Values | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-127793@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: KANM MD [mailto:md@kanm.tamu.edu]
> 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: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211