Location: PHPKode > scripts > Little PHP Proxy > little-php-proxy/example.php
<?php
session_start();
include('proxy_class.php');
//or include('proxy_class_for_php4.php');

		function compress($data) {
	       if(isset($_SERVER['HTTP_ACCEPT_ENCODING']) && strstr($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')!==false ){
	          	header("Content-Encoding: gzip");
				$st="x1fx8bx08x00x00x00x00x00";
				$size = strlen($data);
	        	$data = gzcompress($data, 9);
	        	$data = substr($data, 0, $size);
	        	return $st.$data;
	   		} else {
	   			return $data;
	        }

	   	}

		$P=new little_php_proxy();
		$P->query($_REQUEST['u'],$_POST,$_GET,$_FILES,$_POST['c']);
		$P->getPage();






?>
Return current item: Little PHP Proxy