PHP数据导出和WEB service的有关问题

WBOY
Release: 2016-06-13 11:17:45
Original
1267 people have browsed it

PHP数据导出和WEB service的问题
问题1:用PHPExcel导出数据到excel,大概有7000行记录的时候,就不行了,但是我大概要达到的效果是能导出2、3万行记录,这个该怎么解决呢?
问题2:我用nusoap写得web service,本地测试时能够正常使用,但是上传到服务器上的时候,返回的json值都是空的,显示:HTTP Error: no data present after HTTP headers,返回string的时候是正常的,这个是什么问题呢?
我语文水平比较差,也刚开始用PHP编程,有说不清楚的地方大家指出,我再回帖说明,在线等待大神解答。。。


------解决方案--------------------
excel 有个最大行限制吧?没记错的话 所以这个2-3万行恐怕应该是不行的.
这个你看看是不是内存已经给占完了

第2个问题不太清楚.
------解决方案--------------------
HTTP Error: no data present after HTTP headers
是说在 http 头后面没有数据,但是在头中声明了数据长度
可能是字符集导致 json 编码失败,或许是 nusoap 的问题
SOAP 是使用 XML 做载体
你用 json 做载体就有点不伦不类了
使用 json 作载体的是 REST
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!