Return to Snippet

Revision: 54679
at January 6, 2012 22:40 by devnull69


Initial Code
<?php
$url = $_GET["url"];

$fp = fopen($url, "rb");
$pagedata = "";

while(!feof($fp)) {
	$pagedata .= fgets($fp, 4096);
}
fclose($fp);

echo $pagedata;
?>

Initial URL

                                

Initial Description
Simple PHP proxy. Call it with http://your.url/proxy.php?url=http%3A%2F%2Fthe.external.url/whatever.html

Initial Title
Simple PHP proxy

Initial Tags

                                

Initial Language
PHP