Page 1 of 1

Redirection Question

Posted: Wed Feb 16, 2005 12:23 pm
by Stelios
I have got this line of code which is redirecting the user...

Code: Select all

header ("Location:  http://" . $_SERVERї'HTTP_HOST'] . dirname($_SERVERї'PHP_SELF']) . "/xxx.php");
Is there any way I can make this redirection happen 3-4 secs later?

Thnx a lot! :D

Posted: Wed Feb 16, 2005 12:36 pm
by The Monkey

Code: Select all

header("Refresh:3;URL=http://example.com");
Take that example with a grain of salt, please. I saw it on another forum and never bothered to try it out.

- Monkey

Posted: Wed Feb 16, 2005 12:37 pm
by feyd
Refresh is only supported on IIS and some other server, as far as I remember. To redirect after a given amount of time, use a meta-refresh (html)