Home  >  Article  >  Backend Development  >  php信息输出不全

php信息输出不全

WBOY
WBOYOriginal
2016-06-23 14:10:41852browse

我的php通过socket 接收服务端传过来的数据, 我看长度和server端传过来的字节数是相等的, 但是就是输出不全, 我通过htmlentities 输出的, 难道网页字节数还有限制么? 每次提交查询返回结果, 输出的信息总是少一些, 还不一定少多少, 比如第一次少1000多个字节, 下次有可能少2000个这样 该怎么解决呢?


回复讨论(解决方案)

不好说,还是要看到代码才好说。

代码就是接收server端发送过来的二进制数据,这边接收后转码并输出

代码就是接收server端发送过来的二进制数据,这边接收后转码并输出

我在php+apache环境下试验就正常, 用的xampp. 在linux环境, nginx+php+php-fpm就不行, 输出不全,是什么地方设置有问题么?

Statement:
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