voip03 Posted August 2, 2011 Share Posted August 2, 2011 php redirect with a time delay similar to the Javascript redirect Does anyone know how to do this Link to comment https://forums.phpfreaks.com/topic/243630-redirect-with-a-time-delay-similar-to-the-javascript-redirect/ Share on other sites More sharing options...
WebStyles Posted August 2, 2011 Share Posted August 2, 2011 you can include javascript in your code to achieve that result. Link to comment https://forums.phpfreaks.com/topic/243630-redirect-with-a-time-delay-similar-to-the-javascript-redirect/#findComment-1250875 Share on other sites More sharing options...
voip03 Posted August 2, 2011 Author Share Posted August 2, 2011 is it possable with PHP Link to comment https://forums.phpfreaks.com/topic/243630-redirect-with-a-time-delay-similar-to-the-javascript-redirect/#findComment-1250876 Share on other sites More sharing options...
WebStyles Posted August 2, 2011 Share Posted August 2, 2011 php is server side, so whater php is doing, will be executed on the server and then sent to your browser... you can use sleep($secs) at the start of one of your scripts, to delay the execution, but it won't be the same thing. Some browsers will jump to a blank page while your script is waiting. Firefox will actually wait before the script is over until it jumps, so in firefox you can (sort of) simulate the effect with php. Javascript will do a much better job. Link to comment https://forums.phpfreaks.com/topic/243630-redirect-with-a-time-delay-similar-to-the-javascript-redirect/#findComment-1250881 Share on other sites More sharing options...
voip03 Posted August 2, 2011 Author Share Posted August 2, 2011 alternative to onload in js Link to comment https://forums.phpfreaks.com/topic/243630-redirect-with-a-time-delay-similar-to-the-javascript-redirect/#findComment-1250886 Share on other sites More sharing options...
WebStyles Posted August 2, 2011 Share Posted August 2, 2011 there are many ways you can go from here, what is the exact situation ? Link to comment https://forums.phpfreaks.com/topic/243630-redirect-with-a-time-delay-similar-to-the-javascript-redirect/#findComment-1250901 Share on other sites More sharing options...
voip03 Posted August 2, 2011 Author Share Posted August 2, 2011 I am going to use jquery thank u Link to comment https://forums.phpfreaks.com/topic/243630-redirect-with-a-time-delay-similar-to-the-javascript-redirect/#findComment-1250936 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.