Under Linux, sleeping time is ignored, but under Windows, it counts as execution time. 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 activi…
PHP限定脚本执行时长的方式有几种,下面说下php.ini中的max_execution_time和php-fpm.conf中的request_terminate_timeout 1. php.ini中的max_execution_time ; Maximum execution time of each script, in seconds ; http://php.net/max-execution-time ; Note: This directive is hardcoded to 0…