$url = urlencode(htmlentities($_GET['url'], ENT_NOQUOTES)); if(isset($url)){ $source = file_get_contents($url); $source = htmlspecialchars($source); $uhoh[0] = '//'; $uhoh[1] = '/<%/'; $uhoh[2] = '/?>/'; $uhoh[3] = '/%>/'; $phew[0] = '<?'; $phew[1] = '<%'; $phew[2] = '?>'; $phew[3] = '%>'; $source = preg_replace($uhoh, $phew, $source); } ?>
'; } else{ echo $source; } ?>