dtcpvz8162 2009-10-08 08:50
浏览 440
已采纳

在PHP上传文件时如何防止请求超时?

I'm getting a pretty consistent timeout after 90 seconds. I followed this guide to fix the problem and changed my PHP settings to 600 for timeouts and 20M for file sizes.

In my scenario, I am uploading images. A 100k image seems to upload without any problems but 500k image files time out after 90 seconds.

Any ideas on what I can check next?

If not could anyone suggest a good alternative for single file uploads.

Thanks.


Edit 1:

I did some more tests and I cannot upload files over 200kb on any site.

It seems that it may have something to do with my OS (Windows 7 RC2). My girlfriend is on Vista and it works without a problem and I have an XP virtual machine installed which also works.

  • 写回答

4条回答 默认 最新

  • douou5933 2009-10-08 18:06
    关注

    I did some more tests and I cannot upload files over 200kb on any site.

    It seems that it may have something to do with my OS (Windows 7 RC2). My girlfriend is on Vista and it works without a problem and I have an XP virtual machine installed which also works.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!