PHP脚本上的504网关超时错误 [英] 504 Gateway Time-out Error on PHP Script

查看:731
本文介绍了PHP脚本上的504网关超时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为数据库导入编码了一个脚本,它在数据库上完成了一些工作.当我处理此脚本时,几分钟后,我收到"504网关超时错误".

I coded a script for database import, it makes a few jobs on database. When I work this script, after a few minutes I'm getting "504 Gateway Timeout Error".

我增加了php.ini上的所有超时值,也增加了执行时间,但仍然相同.

I increased all timeout values on php.ini, also I increased execution times but it is still same.

推荐答案

您可以增加php中的最长执行时间.

You can increase maximum execution time in php.

ini_set('max_execution_time', 300); //300 seconds = 5 minutes

这篇关于PHP脚本上的504网关超时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆