note 77844 deleted from function.header by felipe

From: Date: Sun, 30 Dec 2007 18:34:10 +0000
Subject: note 77844 deleted from function.header by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134394@lists.php.net to get a copy of this message
Note Submitter: miha dot wagner at gmail dot com ---- To avoid the "Headers already sent" error, I just use output buffering: <?php // Set output buffering ob_start(); // Print something print "Hello World!"; // Set a cookie? setcookie("name", "value", time()+9999); // Or send a header header("Location: http://www.php.net/"); // Everything works! ?>

« previous php.notes (#134394) next »