I want to output some info to the user then after 5 seconds redirect him to another page, how could this be done?
I would use a html META tag.
This nice poster has an example:
http://www.phpbuilder.net/forum/read.php3?num=2&id=122995&thread=122991
I should add that to wait 5 seconds you change the 0 to a 5.
Try this function: function wait($secs){ $temp=gettimeofday(); $start=(int)$temp["sec"]; while(1){ $temp=gettimeofday(); $stop=(int)$temp["sec"]; if ($stop-$start >= $secs) { break; } } }
//This is how you call it:
wait(5); // then do your redirect.