SELECT SLEEP(5); -- 5 seconds DO SLEEP(5); -- same, output available
<?php $result = mysql_query("SHOW processlist"); while ($myrow = mysql_fetch_assoc($result)) { if ($myrow['Command'] == "Sleep") { mysql_query("KILL {$myrow['Id']}");} } ?>