Login   Register  
PHP Classes
elePHPant
Icontem

File: example.clientsocket.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes 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: 2006-04-23 14:03
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();
}
?>