Location: PHPKode > scripts > Client Socket > client-socket/example.clientsocket.php
<?php

include_once("class.ClientSocket.php");
try {
	$sc = new ClientSocket();
	$sc->open("www.copetel.com.ar",80);
	$sc->send("GET /\r\n");
	echo $sc->recv();
}catch (Exception $e){
	echo $e->getMessage();
}
?>
Return current item: Client Socket