|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-08-04 12:13 UTC] stas@php.net
[2001-11-21 12:11 UTC] mfischer@php.net
[2001-12-15 08:28 UTC] sander@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
$fp = fsockopen("localhost", "8000", &$errno, &$errstring, 3); if(!$fp) { echo "$errstr ($errno)<br>\n"; } else { set_socket_blocking($fp, False); fputs($fp, $message); //while (!feof($fp)) { //$string .= fread($fp, 20); $string .= fgets($fp, 60); //print("MESSAGE FGETS: $message<BR>\n"); print("MESSAGE : $string\n"); //} //fpassthru($fp); print("MESSAGE FINISHED : $string\n"); fclose($fp); //print("Message Received : $loginReceived<BR>"); }