Possible Duplicate:
Does sleep time count for execution time limit?
If the max execution time lower than the sleep function argument
ini_set('max_execution_time', 30);
sleep(35);
foo();
will the foo() function run?
Is it OS specific or not?
EDIT: thank you for your answers, and for a link to a similar question: Does sleep time count for execution time limit?
while setting the set_time_limit or max_execution_time the duration of sleep() will be ignored in the execution time. The following illustrates:
Output:
Taken from http://www.drupaluser.org/php_manual/function.set-time-limit.html
i think this may help.