note 85339 modified in function.socket-create-listen by danbrown

From: Date: Mon, 29 Jun 2009 14:30:47 +0000
Subject: note 85339 modified in function.socket-create-listen by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157668@lists.php.net to get a copy of this message
Hi, if you got same problems like i have <?php @socket_write($xd, "Good Bye!\n\r"); @socket_shutdown($xd, 2); @socket_close($xd); ?> wont'tx send "Good Bye!\n\r" to the opened socket. but if you put a usleep or something like echo ""; between write and shutdown its working. --was-- Hi, if you got same problems like i have <?php @socket_write($xd, "Good Bye!\n\r"); @socket_shutdown($xd, 2); @socket_close($xd); ?> wont'tx send "Good Bye!\n\r" to the opened socket. but if you put a usleep or something like echo ""; between write and shutdown its working. http://php.net/manual/en/function.socket-create-listen.php

« previous php.notes (#157668) next »