Skip to content

Instantly share code, notes, and snippets.

@mayrund
Created April 25, 2015 23:58
Show Gist options
  • Save mayrund/099bb5aeb821520d23fe to your computer and use it in GitHub Desktop.
Save mayrund/099bb5aeb821520d23fe to your computer and use it in GitHub Desktop.
Load site external
<html>
<head>
</head>
<body>
<form name="search" action="loadWeb.php" method="post">
<input type="text" name="search" />
<input type="submit" value="Go!" />
</body>
</html>
<?
$get = $_POST["search"];
#echo $get;
$url = urlencode($get);
#echo $url;
$page = file_get_contents($get);
echo $page
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment