PHP Classes

File: socketTest

Recommend this page to a friend!
  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: 14 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();