php脚本超时设置

修改php.ini:
   max_execution_time = 时间,然后重起服务
   或者在程序写
   set_time_limit(时间); //0为无限制

php.ini
   max_execution_time = 30   
   改成你想要的时间
   单位是秒

你可能感兴趣的:(php脚本超时设置)