Voting

: seven minus three?
(Example: nine)

The Note You're Voting On

michi at tr51 dot org
21 years ago
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
?>

<< Back to user notes page

To Top