PHP Code:
<?php
$_GET['url'] = "http://www.codingforums.com"; // Test URL
$url = isset ($_GET['url']) ? strtolower($_GET['url']) : "someDefaultPage.php";
$file = file($url);
$file = implode("", $file);
if (preg_match("/<title>(.+)<\/title>/i", $file, $m))
$title = $m[1];
else
$title = "someDefaultTitle";
?>
<html>
<head>
<title><?php echo $title; ?></title>
<style type="text/css">
iframe {
width: 100%;
height: 100%;
border: none;
scroll: auto;
}
</style>
</head>
<body>
<iframe src="<?php echo $url; ?>"></iframe>
</body>
</html>