note 31141 deleted from function.header by sniper
| From: | sniper@php.net | Date: | Sun, 07 Sep 2003 21:41:31 +0000 |
| Subject: | note 31141 deleted from function.header by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55643@lists.php.net to get a copy of this message | ||
Note Submitter: markph at speakeasy dot net
----
I was doing this:
require_once('useragent.php');
$agent = new UserAgent();
if ($agent->isPPC())
{
session_write_close();
header("Location: http://www.slashdot.org/palm/");
exit;
}
It works, but ONLY if you ensure you leave NO spaces around the <?php ... ?> in the
useragent.php file.
This basically means that php will write any empty lines back, you cannot redirect if you've
written back to the client.
This is all cached before being sent back to the browser, I have not yet dug up how to empty the
cache in php.
Mark