<?php $server = ''; $port = 9000; $ip = gethostbyname($server); $conn = new PhpSocket($server, $port, '\final\\'); $conn->establish(); $data = $conn->read(); $conn->close();
info at phpclasses dot org