So I can get the code of most pages with this code but I can't keep form requests from originating page from going to back there. I don't think there is an easy way to do this but am just wondering.
PHP Code:<?php
if (!isset($_POST['URL'])) {
?>
<form action="#" method="post">
URL: <input type="text" name="URL"><br />
<input type="submit" />
</form>
<?php
}
if (isset($_POST['URL'])) {
$page = file_get_contents($_POST['URL']);
$page = str_replace("<head>", "<head>\n<base href=\"" . $_POST['URL'] . '" />', $page);
$page = str_replace("<HEAD>", "<head>\n<base href=\"" . $_POST['URL'] . '" />', $page);
echo $page;
}
?>



Reply With Quote


Bookmarks