<?php
$address = $_GET['address']
?>
<html>
<head>
</head>
<body>
<div id="header">
<form method="GET" action="">
<input name="address" type="address" id="address" placeholder="address"/>
<input type="submit" value="Go" id="submit"/>
</form>
</div>
<div id="body">
<iframe src="<?php echo $address ?>" id="frame" height="640px" width="480px" />
</div>
</body>
</html>
<?php
$opts = array(
'http'=>array(
'method'=>"GET",
'header'=>"Accept-language: en\r\n" .
"Cookie: foo=bar\r\n"
)
);
$context = stream_context_create($opts);
$loadfile = file_get_contents('http://www.google.com', false, $context);
echo $loadfile;
?>
<?php
$opts = array(
'http'=>array(
'method'=>"GET",
'header'=>"Accept-language: en\r\n" .
"Cookie: foo=bar\r\n"
)
);
$context = stream_context_create($opts);
$address = $_GET['address'];
$file = file_get_contents($address, false, $context);
?>
<html>
<head>
</head>
<body>
<div id="header">
<form method="GET" action="">
<input name="address" type="address" id="address" placeholder="address"/>
<input type="submit" value="BROWSE" id="submit"/>
</form>
</div>
<div id="body">
<?php echo $file ?>
</div>
</body>
</html>