PHP Classes

PHP Proxy Checker : Check if a proxy server is working and its type

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 48%Total: 2,403 This week: 1All time: 1,624 This week: 560Up
Version License PHP version Categories
php-proxy-checker 1.0Free for non-comm...5.2HTTP, PHP 5
Description 

Author

This class can check if a proxy server is working and its type.

It can send HTTP requests to a test script in the same site via a given proxy server to determine if the proxy is working and its features.

The class tries either regular HTTP, HTTPS, SOCKS 5 protocol.

If it is working it can test if the proxy server supports GET and POST requests, passes the referer header, SSL requests, response speed and the level of anonymity it provides.

Innovation Award
PHP Programming Innovation award nominee
April 2011
Number 3


Prize: One downloadable copy of Komodo IDE
Sometimes it is necessary to use a proxy server to access certain types of resources on the Web.

There are listings with many available proxy servers on the Web that can be used but some of them are not working or work in a certain way that is not convenient.

This class can test if a given proxy is working and tells its characteristics so you can evaluate if it is convenient for your purposes, like speed of response, provided anonymity level, etc..

Manuel Lemos
Picture of Stanislav Afanasiev
  Performance   Level  
Name: Stanislav Afanasiev is available for providing paid consulting. Contact Stanislav Afanasiev .
Classes: 2 packages by
Country: Russian Federation Russian Federation
Age: 35
All time rank: 116838 in Russian Federation Russian Federation
Week rank: 416 Up24 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 1x

Details

/** * PHPProxyChecker documetation. * @author Stanislav Afanasiev <stas.progger[at]gmail.com> * @created 15.12.2010 * @version 1.0 */ English: Documentation for PHPProxyChecker class Requirements for use: PHP 5.2 .* Curl open_ssl How do I use? 1) You should put the file gate.php on hosting with support for all requirements 2) You must declare a constant HTTP_GATE, HTTPS_GATE, CHECK_TIMEOUT before calling checkProxy () Return Values If the proxy is working, it returns an array of the following structure: TYPE - Type of proxy (HTTP or SOCKS) TYPE_NAME - The level of anonymity TYPE_CODE - The numeric value of the level of anonymity (0 - Transparent, 1 - Anonymous, 2 - Elite 3 - Indefinite) QUERY_TIME - response time to a GET request SUPPORT_GET - Support for GET requests (Y | N) SUPPORT_COOKIE - Support transfer COOKIES (Y | N) SUPPORT_REFERER - Support transfer REFERER (Y | N) SUPPORT_POST - Support for POST requests (Y | N) SUPPORT_SSL - Support for SSL (for HTTP) (Y | N) PROXY_IP - Ip address PROXY_PORT - Port If the proxy is not working, it returns an array of the following structure: NOT_WORKING => Y

  Files folder image Files  
File Role Description
Accessible without login Plain text file Example.php Example Example of use
Accessible without login Plain text file gate.php Aux. gate for check proxy
Plain text file PHPProxyChecker.class.php Class PHPProxyChecker class
Accessible without login Plain text file README Doc. Documentation class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,403
This week:1
All time:1,624
This week:560Up
User Ratings User Comments (2)
 All time
Utility:56%StarStarStar
Consistency:56%StarStarStar
Documentation:68%StarStarStarStar
Examples:81%StarStarStarStarStar
Tests:-
Videos:-
Overall:48%StarStarStar
Rank:2885
 
This class does nothing other than a message: No response.
10 years ago (shelley)
10%Star
Global vars is bad practice.
11 years ago (Alexey Freelancer)
65%StarStarStarStar