[php] max_execution time met sleep

Pagina: 1
Acties:

Onderwerpen


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
hey ik heb een script gemaakt die foto's resized en opnieuw wegschrijft na een nieuw bestand, echter dit kost nogal wat serverload vooral als er een hele dir met bv. 200 bestanden, nu wil ik daar een sleep functie, of usleep functie tussen zetten zodat er ff rust is tussen elke foto v(voor de server load), maar mijn vraag is (heb niet kunnen vinden) hoe zit het dan met de max_execution_time.
wordt deze gereset naar die sleep naar 0, of loopt ie door ?

shit verkeerde topic na search, sorry...

[ Voor 7% gewijzigd door Verwijderd op 13-09-2005 16:17 ]


Acties:
  • 0 Henk 'm!

  • elevator
  • Registratie: December 2001
  • Niet online

elevator

Officieel moto fan :)

Software Algemeen >> Programming & Webscripting

Als je http://nl3.php.net/manual/en/function.set-time-limit.php bekijkt zie je genoeg comments die suggereren dat een sleep() niet meetelt in de max_execution_time..

Verder, dit kan je toch relatief gemakkelijk zoeken? :)

Acties:
  • 0 Henk 'm!

  • NMe
  • Registratie: Februari 2004
  • Laatst online: 09-09 13:58

NMe

Quia Ego Sic Dico.

Hetzelfde staat in de user comments van de sleep functie zelf:
Note: The set_time_limit() function and the configuration directive max_execution_time only affect the execution time of the script itself. Any time spent on activity that happens outside the execution of the script such as system calls using system(), the sleep() function, database queries, etc. is not included when determining the maximum time that the script has been running.
User comments zijn ook waardevol en zonder meer altijd handig om te lezen. ;)

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.