Niklas,

> No good, since <meta> starts counting when page is first opened, so

Don't think this is applicable - When is the page "opened": after the script reaches 
the <meta>, or after the
script concludes and the web server sends the page to the browser?

If the latter, then the speed of the connection affects the browser wait until the 
page is (temporarily)
displayed, but not the period of display.

Yes if the page being temporarily displayed is bloated, then the redirect-time period 
must be chosen with due
care.

Ultimately it seems way too complicated, but you could use PHP output buffering. By 
then I think the JavaScript
alternative will sound far more attractive...

Regards,
=dn

----- Original Message -----
From: "Niklas Lampén" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: 17 January 2002 14:05
Subject: RE: [PHP] Display a mesagge and redirect (newbie)


> No good, since <meta> starts counting when page is first opened, so
> clients with slow connection might not never see the message. I'd rather
> use
> <body onLoad="setTimeout(\"location.href='http://domain.com/page.html',
> 5000\");">
> which will execute right after the page is completely loaded and move to
> the next page after 5 seconds.
>
>
> Niklas
>
>
> -----Original Message-----
> From: Intruder [mailto:[EMAIL PROTECTED]]
> Sent: 17. tammikuuta 2002 15:52
> To: Php-General
> Subject: RE: [PHP] Display a mesagge and redirect (newbie)
>
>
> >> a) run a mysql query
> >> b) display a simpe message
> >> c) delay few seconds
> >> d)auto redirect to a page
>
>
> <meta http-equiv="refresh" content="5; URL=new_page.php">
>
> <body>
>  some message goes here !!!
> </body>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED] To
> contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to