note 19740 added to function.setcookie

From: Date: Sat, 09 Mar 2002 10:38:22 +0000
Subject: note 19740 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-27547@lists.php.net to get a copy of this message
If you find it a pain, shuffling your code and setcookie() calls around just to avoid the 'header already sent' errors, then try modifying your php.ini file to change this line.... output_buffering = On Then you can set cookies anywhere in your code, and include echo's and comments and output where-ever you like, which is handy for debugging. -- http://www.php.net/manual/en/function.setcookie.php http://master.php.net/manage/user-notes.php?action=edit+19740 http://master.php.net/manage/user-notes.php?action=delete+19740 http://master.php.net/manage/user-notes.php?action=reject+19740

« previous php.notes (#27547) next »