RE: [PHP] Output buffering

From: Date: Thu, 21 Dec 2000 10:14:04 +0000
Subject: RE: [PHP] Output buffering
Groups: php.general 
Request: Send a blank email to php-general+get-31390@lists.php.net to get a copy of this message
oopss.. I am too tired today.. it will give the "headers already sent" error. do the second way: with meta redicrect. Sorry, Maxim Maletsky -----Original Message----- From: Maxim Maletsky Sent: Thursday, December 21, 2000 7:11 PM To: 'Milan Mlynarcik'; PHP mail list General Subject: RE: [PHP] Output buffering here: foo.php ----------- <? echo 'redirecting you to bar.php'; sleep(3); include('bar.php') ?> bar.php ----------- <? header("Location bar.php"); ?> But this is when you're sure that users access bar.php only from foo.php Otherwise echo a javascript or meta redirect in foo.php: foo.php ----------- <? echo '<META HTTP-EQUIV="Refresh" CONTENT="3; URL=/bar.php">'; echo 'redirecting you to bar.php'; ?> Cheers! Maxim Maletsky -----Original Message----- From: Milan Mlynarcik [mailto:mmlynarcik@charmed.sk] Sent: Thursday, December 21, 2000 6:54 PM To: PHP mail list General Subject: [PHP] Output buffering Can somebody explain how to echo some text than wait for a while and then redirect to another location ??? ------------------------------------------------------------- Milan Mlynarcik Web Programmer Charmed Technology Slovakia -------------------------------------------------------------

« previous php.general (#31390) next »