On Mon, 03 Mar 2003 14:50:00 -0500, you wrote:

>I thought the code below the header() redirect would not actually be
>executed unless the user was logged in and allowed to proceed. Is this how
>PHP is supposed to work? Is there any way to prevent the script from

header() isn't a goto - it just outputs a header. A line of text, just
like echo(); It's the responsibility of the client to then interpret
that line of text and make another http request.

You're seeing correct behaviour, it's not supposed to alter program
flow.

>executing below a certain point if the user is not logged in?

exit()


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to