Advertisement
Guest User

erreur avec la fonction sleep Fatal error: Maximum execution time of 30 seconds exceeded in C

a guest
Dec 14th, 2023
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. function a() {require 'bdd.php';
  2.     $sel = $pdo->prepare("SELECT status_cr FROM status_traitement");
  3.         $sel->execute();
  4.         $sel->setFetchMode(PDO::FETCH_ASSOC);
  5.         $tab=$sel->FETCH();
  6.         echo "<pre>";
  7.   print_r($tab);
  8. echo "</pre>";
  9. if ($tab['status_cr']==1){echo 'traitement impossible pour linstant';b();}
  10.  
  11.     else{echo 'traitement en cours';}
  12.     ;}
  13.  
  14.     function b (){echo 'nouvelle tentative dans 3 secondes'; sleep(3); a(); }
  15. a();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement