PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Ska-Man   Proxy Connector   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Proxy Connector
Retrieve remote Web pages using the TOR network
Author: By
Last change: Update of index.php
Date: 3 months ago
Size: 483 bytes
 

Contents

Class file image Download
<?

//include the class
//remember the configuration file is located in:
//proxyConfiguration.ini

include("./proxyConnector.class.php");

//get an istance of the proxy
$connection = proxyConnector::getIstance();

//connect to google.com and change my identity
//because "switchIdentityAfterRequest" is set to TRUE
//in the .ini file
$connection->launch("http://www.google.com/", null);

//get the data and show it
$data = $connection->getProxyData();

echo
"<pre>";
print_r($data);