PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Alexey Freelancer   Proxy Checker   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Proxy Checker
Check is a HTTP proxy is working
Author: By
Last change: Update of example.php
Date: 8 months ago
Size: 346 bytes
 

Contents

Class file image Download
<?php

namespace ProxyChecker;

include
__DIR__ . '/ProxyChecker.php';

$pingUrl = 'http://yourdomain.com/ProxyChecker/ping.php';
$proxyChecker = new ProxyChecker($pingUrl);

$proxies = array(
   
'183.95.132.76:80',
   
'195.5.18.41:8118',
);

$results = $proxyChecker->checkProxies($proxies);

echo
'<pre>';
var_export($results);
echo
'</pre';