Login   Register  
PHP Classes
elePHPant
Icontem

File: socketTest

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of akash  >  PHP sockets  >  socketTest  >  Download  
File: socketTest
Role: Example script
Content type: text/plain
Description: expample file
Class: PHP sockets
Access remote servers using TCP sockets
Author: By
Last change:
Date: 3 years ago
Size: 190 bytes
 

Contents

Class file image Download
<?php
$server 
'';
$port 9000;
$ip gethostbyname($server);
$conn = new PhpSocket($server$port'\final\\');        
$conn->establish();

$data $conn->read();


$conn->close();