Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001072

[PHP] #!interpreterDirective and Setting cookies From: Kenneth R. Martinek (kmartinek <email protected>)
Date: 07/25/01

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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>