On Mon, 25 Mar 2002, Brad Harriger wrote:
> I'm trying to debug a program written by someone else. There are two
> files that I'm having problems with. File A uses require_once to call
> file B. Near the beginning of File B is a Header("Location:") that
> calls File A. Can anyone tell me if the part of file B that comes
> after the Header("Location:") is ever read by File A?
require_once() is processed by the PHP interpreter.
A 'Location:" header is processed by the browser, long after the PHP
interpreter has finished and forgotten about the page.
So everything in file B is processed and handled and executed, then the
Location header is eventually sent to the browser, when then probably
ignores all the other things sent after the headers.
miguel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php