Re: Stop to fast caching/parsing

From: Date: Sat, 27 Apr 2002 15:57:42 +0000
Subject: Re: Stop to fast caching/parsing
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-94904@lists.php.net to get a copy of this message
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" <php-general@gremlins.com.hk> To: <php-general@lists.php.net> 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 >

« previous php.general (#94904) next »