如何增加php中的执行超时? [英] How to increase the execution timeout in php?
本文介绍了如何增加php中的执行超时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何增加交易超时时间?我想上传视频,但是还没有上传大尺寸的视频吗?
How to increase transaction timeout? I want to upload videos, but large size of videos not uploaded?
它引发错误The process *** exceeded the timeout of 60 seconds.
推荐答案
您需要在php.ini中更改一些设置:
You need to change some setting in your php.ini:
upload_max_filesize = 2M
;or whatever size you want
max_execution_time = 60
; also, higher if you must - sets the maximum time in seconds
您的PHP.ini所在的位置取决于您的环境,更多信息: http: //php.net/manual/en/ini.list.php
Were your PHP.ini is located depends on your environment, more information: http://php.net/manual/en/ini.list.php
这篇关于如何增加php中的执行超时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文