duanhongqiong9460 2011-04-29 13:26
浏览 73

下载大文件(~400MB)在生产中过早停止,在开发服务器上正常工作

Recently I ran into a problem on larger file downloads in PHP. PHP is running as CGI on zeus server. I tried everything but all in vain. like:

set_time_limit(0);
ini_set('max_execution_time',0);

The problem is that after downloading about 4-5MB, downloading stops without any warning. However, when I run the code locally everything works like a charm. Help me get out of this problem.

  • 写回答

3条回答 默认 最新

  • dsutuyxe088689 2011-04-29 13:46
    关注

    Look in your PHP.ini file on the zeus server and your local box. Check the

    upload_max_filesize = ??
    

    Or the:

    post_max_size = ??
    

    values on both servers. See if they are different.

    评论

报告相同问题?