没有
你的问题的解决办法是用
int fsockopen(string hostname, int port, int [errno], string [errstr], int [timeout]);
处理,timeout 选项表示多久没有连上就中断
你的问题的解决办法是用
int fsockopen(string hostname, int port, int [errno], string [errstr], int [timeout]);
处理,timeout 选项表示多久没有连上就中断
http://www.phpx.com/happy/thr62604.html这个例子我试着改过,可以做成"死循环"了,虽然客户端已经关闭,呵呵~
过30秒就停止,你可以修改php.ini加长执行时间