note 31767 added to function.setcookie

From: Date: Fri, 02 May 2003 21:57:00 +0000
Subject: note 31767 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-47404@lists.php.net to get a copy of this message
If you try to set a cookie, but nothing happens, check your server's logs. When there is a problem with your code before the setcookie() tag, the server will don't set the cookie, it says that the headers are already sent. from error.log: PHP Warning: Cannot modify header information - headers already sent in C:\de programa\Apache Group\Apache2\htdocs\SE\auth.php on line 26, referer: http://localhost/SE/admin.php (I was using Apache 2.0 with PHP (cgi) in win98) -- http://www.php.net/manual/en/function.setcookie.php http://master.php.net/manage/user-notes.php?action=edit+31767 http://master.php.net/manage/user-notes.php?action=delete+31767 http://master.php.net/manage/user-notes.php?action=reject+31767

« previous php.notes (#47404) next »