PHP Classes

File: testmsocket.php

Recommend this page to a friend!
  Classes of markitos   msocket   testmsocket.php   Download  
File: testmsocket.php
Role: ???
Content type: text/plain
Description: Test file to view hot to work
Class: msocket
Simple class to use php sockets
Author: By
Last change:
Date: 22 years ago
Size: 576 bytes
 

Contents

Class file image Download
<? require_once ("clasemsocket.php"); $Datos=''; if ($goOpen) {$MSocket = new msocket ("www.google.com"); $MSocket->Envia ("GET / \n\n"); $Datos = $MSocket->Recibe(); unset ($MSocket);} if ($goClose) {$MSocket = new msocket ("www.google.com"); $Datos = $MSocket->EnviaRecibe ("GET / \n\n"); unset ($MSocket);} echo $Datos; ?> <br> <hr> <a href="<?=$PHP_SELF?>?goOpen=1">[Click Aqui para ver google en modo socket abierto]</a> <br> <hr> <a href="<?=$PHP_SELF?>?goOpen=1">[Click Aqui para ver google en modo socket cerrado]</a> <hr> <br>