Forum Moderators: coopster
<?PHP
Header("Location: [example.com...]
Header("Connection: close");
?>
and:
<?PHP
Header("Location: [example.com...]
exit;
?>
From a (very) quick browse it seems that the exit [php.net] command will generate a "Connection: close" header by default. Does "Connection: close" have the same effect as exit in that no further PHP code on the page will be parsed?
Connection: closeis not necessarily IE-related, nor PHP related. It has to do with the HTTP protocol, specifically the differences between HTTP 1.0/HTTP 1.1 and persistent connections. RFC2616 [ietf.org], sections 14.10 and 8.1.