More than likely not. Putting an exit statement after a header redirect 
is just good practice and ensures that nothing gets executed after 


Don wrote:

>I have a PHP script that uses the following code to redirect to a page of the user's 
>In examples of this type of coding in various scriots,  the above line is always 
>followed by the statement:
>I am wondering why.  When executing a Header("Location"); statement, does control 
>return to the PHP script after execution?  In that case, I assume that the exit; 
>statement is there in order to terminate the php script.  In that event, can I 
>execute code within my script after calling the Header("Location") page?

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to