<html>
<?php
$daurl = $_GET['url'];
echo '<head><base href='.$daurl.'></head><Body>';
// Set your return content type
//header(Content-type: application/xml);
// Website url to open
// Get that website is content
$handle = fopen($daurl, "r");
// If there is something, read and return
if ($handle) {
while (!feof($handle)) {
$buffer = fgets($handle, 4096);
echo $buffer;
}
fclose($handle);
}
?>
</body>
</html>
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.