note 31404 rejected from function.setcookie by spic
| From: | spic@php.net | Date: | Sun, 20 Apr 2003 22:44:05 +0000 |
| Subject: | note 31404 rejected from function.setcookie by spic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-46860@lists.php.net to get a copy of this message | ||
I have spent that last hour trying to get cookies to work, to suddenly find out that it is because I
am running my php script as a cgi app (i.e. #!/usr/bin/php). The reason I am running the script as a
cgi app is due to a server I am running as root as this is for an administration kit... but thats
not the point.
I have tried my script on a normal copy of apache and it works fine... however, when I then reran it
on the cgi app version I was faced with problem...
Warning: Cannot add header information - headers already sent by (output started at
/usr/libexec/ttnetwk/index.cgi:2) in /usr/libexec/ttnetwk/index.cgi on line 110
If anyone has any ideas please e-mail me at totalnetwk@aol.com, or leave a message here! Thanks for
any help guys :o) Also PHP.NET is very cool, I have learnt everything I know so far from just within
the pages of this site!
Mike