Simple Question , in Java , there is Timer Class , or AlarmManager , or even a while(true) loop to Repeat somes Code , how can i achieve with Php Code , i want to repeat somes Php Code/Script , i have tried :
while(true){
////Give me an Error , 'No Data Received from WebSite/Not Response
}
function Check(){
////Do Code
Check()
////Syntax and Others Error , does Not Work
}
echo "<script>setTimeout('check()',10);"; ////does not Work too
Additional Code :
$q=mysql_query("SELECT message FROM $tbl_name WHERE pass='".$_SESSION['Logged']."'");
while($row = mysql_fetch_array($q)){
while(true)
echo $row['message']; ///In French Language saying that the server closed the connection without sending any Data,
Error : Erreur 324 (net::ERR_EMPTY_RESPONSE) : Le serveur a mis fin à la connexion sans envoyer de données.
}