duannaozhao4626 2014-10-30 18:46
浏览 59
已采纳

PHP SOAP-Client以超过30 MB的响应返回CGI-Error

I have a question for an PHP/SOAP-Client issue. I've searched already for a solutions at stackoverflow.com but I haven't found something what leads me to a solutions.

I have wrote an PHP-Soap-Client which sends requests to an .NET-Webservice. One function of this Webservice is to receive documents. Every thing works fine until the received document isn't larger than 30 MB. If I try to get a document larger than 30 MB then the server returns the CGI-Error.

The server where I run that PHP-Soap-Client is an Windows 2003 Standard with IIS6. PHP-Version is 5.2.17 (sorry for that. I know that version is an old one but I can't update PHP because of some needed extensions).

Did anybody had such an issue and solved it? Or has anybody maybe a solution for it?

Best regards Markus

  • 写回答

1条回答 默认 最新

  • doupiai5597 2014-10-30 19:19
    关注

    Try verify the values of the upload_max_filesize and post_max_size properties in your php.ini and see if they are causing the constraints.

    They should look something like this in your php.ini"

    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 40M
    
    ; Must be greater than or equal to upload_max_filesize
    post_max_size = 40M
    

    Something to be aware of, and to quote the doc:

    To upload large files, this value (post_max_size) must be larger than upload_max_filesize. If memory limit is enabled by your configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题