Re: Program control question

From: Date: Mon, 25 Mar 2002 23:53:42 +0000
Subject: Re: Program control question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-90116@lists.php.net to get a copy of this message
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

« previous php.general (#90116) next »