<?php
// Proxy
require_once('shell.proxy.php');
// Some simple example :o)
cls__shell_proxy::proxy_set( 'proxy_ip', 'proxy_port' );
var_dump( cls__shell_proxy::proxy_get( 'http://www.google.com' ) );
// or with Basic authentication
cls__shell_proxy::proxy_set( 'proxy_ip', 'proxy_port', 'proxy_user', 'proxy_password' );
var_dump( cls__shell_proxy::proxy_get( 'http://www.google.com' ) );
/*
Returns:
(string) index file of www.google.com
*/
?>
|