PHP Classes

File: examplescan.php

Recommend this page to a friend!
  Classes of Shannon Wynter   Proxy Test   examplescan.php   Download  
File: examplescan.php
Role: Example script
Content type: text/plain
Description: An example script using the ProxyTest class
Class: Proxy Test
Scan and detect open proxy servers
Author: By
Last change:
Date: 19 years ago
Size: 393 bytes
 

Contents

Class file image Download
<pre>
<?
include("ProxyTest.class.php");
$p = new ProxyTest(array("mailserver" => "mail.somewhere.com"));

$found = $p->PerformScan('127.0.0.1');

echo
"<b><u>Summary</u></b>\n";
if (
count($found) > 0) {
    echo
"Found <u>".count($found)."</u> open proxies\n";
    foreach (
$found as $find) {
        echo
"<b>Found:</b> $find\n";
    }
} else {
    echo
"Found no open proxies\n";
}
?>
</pre>