note 42700 added to function.socket-read

From: Date: Wed, 26 May 2004 16:48:34 +0000
Subject: note 42700 added to function.socket-read
Groups: php.notes 
Request: Send a blank email to php-notes+get-70130@lists.php.net to get a copy of this message
if you'd like to make a "socket_read" on a linux-system connected with a flash-client (v. 6.0 r81) you have to send a string to the connected port: <?php ... //initialising communication $string = "ready to get/send data\0"; socket_write($socket, $string); //now you can read from... $line = trim(socket_read($socket, MAXLINE)); ... // do some stuff, finaly close connection ?> ---- Manual Page -- http://www.php.net/manual/en/function.socket-read.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42700 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42700&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42700&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70130) next »