Created
April 25, 2015 23:58
-
-
Save mayrund/099bb5aeb821520d23fe to your computer and use it in GitHub Desktop.
Load site external
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
</head> | |
<body> | |
<form name="search" action="loadWeb.php" method="post"> | |
<input type="text" name="search" /> | |
<input type="submit" value="Go!" /> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$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