Re: php redirection..

From: Date: Thu, 14 Dec 2006 15:44:23 +0000
Subject: Re: php redirection..
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-245827@lists.php.net to get a copy of this message
Budi Setiawan wrote: >> basically: >> >> cat.php >> -echo " test content<br>" >> -echo " more test content<br>" >> >> //redirect user >> echo" >> <script> >> location.href='foo.php'; >> </script> >> "; >> > > > Hi , im a new too.. > > but you can try with this to delay your script running for some seconds : > echo " test content<br>" > echo " more test content<br>" > > // you can add : > sleep(2); > // this will cause your script delayed for 2 seconds > > //redirect user > echo" > <script> > location.href='foo.php'; > </script> > "; > This would work providing you don't use output buffering, otherwise the user won't see any data whatsoever that has been sent prior to the sleep() call. > > // hhaha.. > // im just trying to help... > // >

« previous php.general (#245827) next »