mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
- 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:
parent
fea87c952f
commit
24e1656b7c
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue