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.

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

报告相同问题?

悬赏问题

  • ¥30 YOLO检测微调结果p为1
  • ¥20 求快手直播间榜单匿名采集ID用户名简单能学会的
  • ¥15 DS18B20内部ADC模数转换器
  • ¥15 做个有关计算的小程序
  • ¥15 MPI读取tif文件无法正常给各进程分配路径
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
  • ¥15 setInterval 页面闪烁,怎么解决
  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题