Home > Backend Development > PHP Tutorial > socket小疑点

socket小疑点

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 11:27:11
Original
829 people have browsed it

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

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

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

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

还有没有其它方法?

环境:LAMP

注:不要用 while,会很慢。

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