Login   Register  
PHP Classes
elePHPant
Icontem

File: examplescan.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2004-08-08 22:49
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>