bud... if you try to use the 'sleep' function, you'll discover it doesn't effectively wait... ie, it's not waiting a specified period of time, prior to invoking the jscript location.href. remember, sleep is server side, jscript is client side. i haven't thoroughly tested this, but i imagine that this acts in a similar manner to the 'header' function as well... -----Original Message----- From: Budi Setiawan [mailto:misty.trees@xxxxxxxxx] Sent: Wednesday, December 13, 2006 9:33 PM To: bedouglas@xxxxxxxxxxxxx Cc: php-general@xxxxxxxxxxxxx Subject: Re: php redirection.. > 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> "; // hhaha.. // im just trying to help... // -- 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