设置更改后 PHP 上传超时,GoDaddy?

发布于 2024-12-23 12:03:04 字数 246 浏览 4 评论 0原文

我已将 php.ini 中的设置更改为:

memory_limit = 50M
post_max_size = 10M
file_uploads = On
upload_max_filesize = 10M

但我的脚本仍然超时。我已经编写了一些代码,如果大小太大,上传就会失败,但上传会在到达该点之前超时。我可以使用什么其他代码来完全禁用超时,我上传的文件不到 3mb,所以不是很大?

TIA

I've changed the settings in my php.ini to:

memory_limit = 50M
post_max_size = 10M
file_uploads = On
upload_max_filesize = 10M

But my script is still timing out. I've written in some code to fail the upload if the size is to large, but the upload timesout before it gets to that point. What other code can I use to fully disable the timeout, the file I'm uploading is just under 3mb so not huge?

TIA

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

紫罗兰の梦幻 2024-12-30 12:03:04

请尝试以下操作:

set_time_limit(0);

Try the following:

set_time_limit(0);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文