On Windows, the PHP INI variable, “max_execution_time,” is the maximum clock time between when the PHP process starts and when it finishes.
On Linux and OS X, the same variable represents the maximum CPU time that the PHP process can take. CPU time is less than clock time because processes on Linux (and OS X) contend for CPU time, and sometimes sit idle.
For example, if you have a PHP program which makes a request to a web service, like FileMaker’s Custom Web Publishing, on Linux, the time the PHP program waits for a response is not counted, while on Windows, it does.
You can see this by running the script:
<?php
set_time_limit(15); /* Sets max_execution_time */
sleep(30); /* Wait thirty seconds */
echo "Hello World!\n";
?>
If you run this on Windows, it will fail with an error message, but on Linux or OS X, the time spent sleeping is time the process is “idle,” so the execution time is considered to be almost zero.
Related posts:
- Simplify fmsadmin from Windows cmd prompt On an email thread I was participating in today, Caleb...
- Use New Windows to Preserve State One of our collective pet-peeves at Soliant is when a...
Related posts brought to you by Yet Another Related Posts Plugin.










|
Posted by admin on February 17, 2010 at 4:13 pm
