ZH奶酪:PHP 执行时间Fatal error: Maximum execution time of...

来源:http://*.com/questions/5164930/fatal-error-maximum-execution-time-of-30-seconds-exceeded

(1)modify the parameters in php.ini

max_execution_time = 360      ; Maximum execution time of each script, in seconds (I CHANGED THIS VALUE)
max_input_time = 120 ; Maximum amount of time each script may spend parsing request data
;max_input_nesting_level = 64 ; Maximum input variable nesting level
memory_limit = 128M ; Maximum amount of memory a script may consume (128MB by default)

(2)set in php script

set_time_limit(0);

(3)set in .htaccess file

<IfModule mod_php5.c>
php_value post_max_size 200M
php_value upload_max_filesize 200M
php_value memory_limit 300M
php_value max_execution_time 259200
php_value max_input_time 259200
php_value session.gc_maxlifetime 1200
</IfModule>
上一篇:webdriver 获取alert 提示no alert is active


下一篇:fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit