Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 4 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_dumpcls__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_dumpcls__shell_proxy::proxy_get'http://www.google.com' ) );

/*
Returns:
(string) index file of www.google.com
*/
?>