"; // That's it! No need to go below here. Upload it and test by going to yoursite.com/page.php // (The page containing the two tags and a link to this script) // ----------------------------------------------------- $startingpoint = ""; $endingpoint = ""; // let's turn off any ugly errors for a sec so we can use our own if necessary... error_reporting(0); // $read = fopen($httprefer, "rb") ... this line may work better if you're using NT, or even FreeBSD $read = fopen($myURL, "r") or die("
Sorry! There is no access to this file directly. Please contact Web Master"); // let's turn errors back on so we can debug if necessary error_reporting(1); $value = ""; while(!feof($read)){ $value .= fread($read, 10000); // reduce number to save server load } fclose($read); $start= strpos($value, "$startingpoint"); $finish= strpos($value, "$endingpoint"); $length= $finish-$start; $value=substr($value, $start, $length); function i_denude($variable) { return(eregi_replace("]*>", "", $variable)); } function i_denudef($variable) { return(eregi_replace("]*>", "", $variable)); } function i_denudea($variable) { return(eregi_replace("]*>", "", $variable)); } $PHPrint = ("$value"); if ($stripImages == "yes") { $PHPrint = i_denude("$PHPrint"); } if ($stripAnchor == "yes") { $PHPrint = i_denudea("$PHPrint"); } $PHPrint = i_denudef("$PHPrint"); $PHPrint = str_replace( "", "", $PHPrint ); $PHPrint = stripslashes("$PHPrint"); echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; echo "\n"; echo "Normal View
\n"; echo $PHPrint; echo "
\n"; echo ""; flush (); ?>