Cookies w/PHP as CGI Binary, possible?
| From: | Kurtiigeek | Date: | Mon, 21 Jan 2002 03:45:23 +0000 |
| Subject: | Cookies w/PHP as CGI Binary, possible? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-81317@lists.php.net to get a copy of this message | ||
I don't know if it's possible because as far as I know
headers are sent immediately upon execution when PHP is
installed as CGI binary. But my question is, if
possible, how can I get cookies to work when PHP has been
installed as CGI binary.
This does NOT work for me:
// start of code
#!/usr/bin/php
<?php
setcookie ("logName","someUser",time()+3600);
?>
// end of code
Any ideas?
Thanks,
- Kurtii