Skip to main content Help Control Panel

Login   A+   A-

Community «   Le forum «   Machine à café «  

error maximun_execution_time

comment éviter cette erreur.

Cette erreur apparaît lorsque qu'un script consomme un temps supérieur à celui defini dans la variable, d'un façon générale de 15 à 30 seconde sur les hébergeurs.
il existe une fonction pour augmenter cette limite mais elle est souvent dévalidée (safe mode) pour les fournisseurs.

Existe un moyen de contourner ce problème ? une sorte de cron()

idée je déroule un script est à partir d'un certain temps si il n'a pas fini, il arrête puis reprend soit manuellement soit automatiquement (jscript possible?) pour chaque tranche jusqu' a la fin.

---

it error comes when a script is running more than a time define by the variable (php.ini) in majority case  it sets from 15 to 30 seconds to provider. A function can adjust  an upper value, in general the provider forgets the change (safe mode)

Does exits a kind of function as a cron() to schedule the work. Idea, i run the script during a time , if the task is not ended , it stops and manually or automatically restarts  (jscript) from the last state to the end.


Bernard
avatar
from nearby-an-airport
Associate, 6734 posts

on Jan. 17 2007


Ce qu'il faudrait, c'est une sorte de scheduler, qui découpe le temps en tranche, et qui l'alloue aux processus qui en ont besoin. Je ne sais pas si une solution simple existe pour PHP, mais si c'est le cas, je suis preneur...

Rate this page
Posted by Dobliu on Jan. 17 2007, commented by Bernard on Jan. 17 2007, (popular)