#!interpreterDirective and Setting cookies
| From: | Kenneth R. Martinek | Date: | Wed, 25 Jul 2001 15:54:53 +0000 |
| Subject: | #!interpreterDirective and Setting cookies | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-59565@lists.php.net to get a copy of this message | ||
Hello all,
I'm having a problem setting cookies, when running code using the explicit interpreter directive (#!\php\php.exe). The problem is that PHP cant set cookies because bytes are sent back to the client before the setcookie() (presumably \n or \r 's), but only when the interpreter directive is used.
The question simply is, is the webserver reponsible for stripping that line after it passes the code to the interperter, or is PHP supposed to do it?
Thanks,
Ken