Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php unix socket client

$sock = stream_socket_client('unix:///full/path/to/my/socket.sock', $errno, $errstr);
fwrite($sock, 'SOME COMMAND'."
");
echo fread($sock, 4096)."
";
fclose($sock);
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #unix #socket #client
ADD COMMENT
Topic
Name
1+5 =