登陆

新版phpstudy 无法设置超时时间

无论在php.ini  还是在代码里面设置都无法起效 但是旧版可以

public function test111(){
    ignore_user_abort(true);
    set_time_limit(2000);
    ini_set('max_execution_time', 2000);
    sleep(60);
    return '123';
}

新版无法返回123  旧版可以

2019-09-27 19:47:532610 次浏览

全部回复(2)我要回复

  • 飞雪

    飞雪2020-10-27 18:12:40

    phpstudy_pro\Extensions\Nginx1.15.11\conf路径中修改nginx.conf,在sendtime附近添加参数在这里插入代码片

    fastcgi_connect_timeout 600; fastcgi_send_timeout 600; fastcgi_read_timeout 600;`

    回复
    0
  • 尘の风

    尘の风2019-10-08 15:17:24

    我刚特意测试了一下,设置正常,没有问题哦

    你看下你的是不是存在权限问题

    回复
    0
  • 取消回复发送