PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Kemal GENIS   PHP Tor Proxy Curl   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Tor Proxy Curl
Send HTTP request using a Tor proxy server
Author: By
Last change:
Date: 3 years ago
Size: 262 bytes
 

Contents

Class file image Download
<?php
include_once "torProxy.class.php";

$url = "ifconfig.me/ip";
echo
$url."\n";
$tor = new torProxy();
$data = $tor->get($url);
echo
$data."\n";

sleep(5);
echo
"Reset Tor Node...\n";
$tor->resetTor();
echo
$url."\n";
$data = $tor->get($url);
echo
$data."\n";