PHP Classes

File: example.clientsocket.php

Recommend this page to a friend!
  Packages of Juan M. Hidalgo   Client Socket   example.clientsocket.php   Download  
File: example.clientsocket.php
Role: Example script
Content type: text/plain
Description: Example Client Socket
Class: Client Socket
Generic network client connection wrapper
Author: By
Last change:
Date: 20 years ago
Size: 212 bytes
 

Contents

Class file image Download
<?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();
}
?>