i got this so far:
<html>
<?php
$url = $_GET['url'];
if ($url == ""){
$url = $_POST['neturl'];
}
$httptest = substr("$url",0,7);
if ($url != "") {
if ($httptest == "http://")
{} else {
$url = "http://".$url;
}
}
?>
<form action="index.php" method="post" name="netform" id="netform">
<input name="neturl" type="text" id="neturl" value="<?php echo $url; ?>" size="50" maxlength="255">
<input type="submit" name="Submit" value="Go">
</form>
<hr>
<?php
$pagedata = file_get_contents($url);
//show page
echo $pagedata;
?>
</html>
Could you give me an example of how to look for patterns and replace them? Cos iv tried some string replacement but as HTML can vary so much with examples such as " src =, src=, "src=" " ", etc.. all being the same.. so nromal str_replace wont work and i cnat figrure out preg replace.. thanx.