Re: Stop to fast caching/parsing

From: Date: Sat, 27 Apr 2002 14:56:20 +0000
Subject: Re: Stop to fast caching/parsing
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94899@lists.php.net to get a copy of this message
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" */

« previous php.general (#94899) next »