PHP Proxy help
Posted: Thu Feb 21, 2008 10:50 am
I'm new to php and trying to write a proxy using it. I believe I've been able to request a url but I'm not sure how to write the data back to the browser. So far I have
But nothing is returned but a blank page.
Code: Select all
<?php
$address = "http://www.google.com/"; //will eventually be passed from some other source
$instream = fopen($address, "r");
$data = fread($instream, filesize($instream));
fclose($instream);
fwrite($this,$data,filesize($data));
?>