On Saturday 27 April 2002 22:49, Jan Peuker wrote:
> Hi List,
>
> my Problem is, on the second line of my script I validate a session. If
> it's false, it dies. But in the first line, I require a
> header(html,body,title etc.). Now, if a session fails, my die-Message ends
> in a "<script>"-Part, so nobody sees it but gets an error by JS. Is there
> any way to stop parsing PHP before flushing out required headers?

Can't you change the order of your code so that it validates the session 
before doing anything else?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Put a rogue in the limelight and he will act like an honest man.
                -- Napoleon Bonaparte, "Maxims"
*/

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

Reply via email to