Updating PHP after 5 seconds did not work for me when I opened the Save As dialog to save the file: (header ('Content-type: text / plain'); header ("Content-Disposition: attachment; filename = $ filename>") ;)
After the "Save As" button was pressed and the file was saved, the time update stopped on the calling page.
However, thanks a lot, the ibu javascript solution just kept ticking and refreshing my web page, and this is what I need for my specific application. So thanks ibu for posting javascript to solve php problem.
You can use javascript to redirect after a while
setTimeout(function () { window.location.href = 'http://www.google.com'; },5000);
JustJohn Jul 03 '13 at 18:42 2013-07-03 18:42
source share