- Shorten example so that it fits on the screen ;)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@126983 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Derick Rethans 2003-05-14 14:12:25 +00:00
parent fea87c952f
commit 24e1656b7c

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<!-- $Revision: 1.5 $ -->
<refentry id="function.stream-socket-server">
<refnamediv>
<refname>stream_socket_server</refname>
@ -68,7 +68,7 @@ if (!$socket) {
echo "$errstr ($errno)<br>\n";
} else {
while ($conn = stream_socket_accept($socket)) {
fputs ($conn, 'Thank you for connecting to my server. The local time is ' . date('n/j/Y g:i a') . "\n");
fputs ($conn, 'The local time is ' . date('n/j/Y g:i a') . "\n");
fclose ($conn);
}
fclose($socket);