But I WANT to do something else, loading other code!
But ok, I will check at first, then include a short header before dying.
This runs, but isn't beautiful. Thanks.

Jan

----- Original Message -----
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 27, 2002 4:56 PM
Subject: Re: [PHP] Stop to fast caching/parsing


> 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
>


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

Reply via email to