PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Gerd Christian Kunze   AIO:Proxy   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: AIO:Proxy
Retrieve pages using proxies with autentication
Author: By
Last change:
Date: 13 years ago
Size: 463 bytes
 

Contents

Class file image Download
<?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
*/
?>