dmccabe Posted June 12, 2008 Share Posted June 12, 2008 Is it possible with PHP to do a timed re-direct? So that someone can go to a page see a message that is displayed then after a short while be redirected to another page? Link to comment https://forums.phpfreaks.com/topic/109861-solved-timed-redirect/ Share on other sites More sharing options...
stublackett Posted June 12, 2008 Share Posted June 12, 2008 Yeah, It is possible to do that just put an echo in Use the code echo "<meta http-equiv=Refresh content=4;url=index.php>"; Content = 4 is the amount of seconds before it re-directs and url is the page you want it to go to Link to comment https://forums.phpfreaks.com/topic/109861-solved-timed-redirect/#findComment-563748 Share on other sites More sharing options...
kbh43dz_u Posted June 12, 2008 Share Posted June 12, 2008 but this is still not php but javascript ... if you want php only there will be no way - except setting a timeout for the script (but the client will not get the result until the timeout is over) Link to comment https://forums.phpfreaks.com/topic/109861-solved-timed-redirect/#findComment-563776 Share on other sites More sharing options...
dmccabe Posted June 12, 2008 Author Share Posted June 12, 2008 No that is fine, thank you very much, it works like a charm Link to comment https://forums.phpfreaks.com/topic/109861-solved-timed-redirect/#findComment-563779 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.