Header Processing
- From: Call Me Tom <Noone@xxxxxxxxxxx>
- Date: Thu, 31 Jul 2008 04:00:06 -0400
I was looking at an application with the following code snippet:
ob_start();
session_name('foo');
session_start();
if (!$_SESSION['bar']) {
header("Location: http://" . $_SERVER['HTTP_HOST'] .
dirname($_SERVER['PHP_SELF']) . "/index.php");
ob_end_clean();
exit();
}
I am under the impression that the "header" redirection is immediate.
Am I correct or will the 'ob_end_clean()' and 'exit()' actually
process.
Tom
.
- Follow-Ups:
- Re: Header Processing
- From: Erwin Moller
- Re: Header Processing
- Prev by Date: Re: Working more efficiently in PHP
- Next by Date: Re: Header Processing
- Previous by thread: Open word file using php in linux server
- Next by thread: Re: Header Processing
- Index(es):