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

Mike

Don wrote:

>Hi,
>
>I have a PHP script that uses the following code to redirect to a page of the user's 
>choice:
>
>header("Location: http://www.mypage.net/";); 
>
>In examples of this type of coding in various scriots,  the above line is always 
>followed by the statement:
>
>exit;
>
>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 (http://www.php.net/)
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