Thanks, works great.
Are there ways to do this with normal PHP queries? So dont execute it untill a given time?
Although this piece of code is fine it is recomended to always send redirect/refresh requests as absolute E.G. your request should always be in the form of
u can do this with the help of meta tag as well
<meta http-equiv="refresh" content="8; URL=mypage.php?cmd=done?>">//it will wait for 8 seconds then redirect to other page
But that envolves outputing a HTML page and is not as reliable. With a META tag you would have to output a HTML page and the page would have to load first. With the php Header method it is almost instant redirection without the need to output a HTML page.
Ill try sleep(). Seems like the best solution.