socket小疑点

WBOY
WBOYOriginal
2016-06-13 11:27:11818browse

socket小问题
fputs($fp_send, $send_all);
stream_set_timeout($fp_send, 30);
$result = fread($fp_send, 8192);

我在本机运行时,可以取到完整的结果。

可我传到服务器上后,只能除到几百个字符。

请问要如何配制呢?是要个服务器配制什么?

还有没有其它方法?

环境:LAMP

注:不要用 while,会很慢。

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