Create a function:
function dosomething() {
<insert here the part of the script you want repeated several times>
}
the script:
<?php
$i = 0;
while ($i == 0) {
dosomething; //this might be dosomething(), I haven't fiddled with PHP much as of late.
}
?>
This'll create an endless loop. So you might want to add another variable after $i = 0; put $d =0; Then after while($i == 0) { throw in $d = $d+1;. After the dosomething; statement add if ($d == 30) { exit; } replace 30 with the amount of times you want dosomething ran. Of course, there are also for loops and other methods of this. Which is faster I do not know, but this should work fine. If you need more help I recommend www.php.net's online manual. That is where I learned to write a forum system (much like the one I'm typing this on! ). You can also reply to this thread and if I see it I'll reply. Good luck to ya.