Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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:
Date: 4 years 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);