"); // enter the unique HTML from the page, of where you want to STOP grabbing. $finish= strpos($grab, "April1998"); $length= $finish-$start; $contents=Substr($grab, $start, $length); } $contents = eregi_replace( "]*>", "", $contents ); // Remove image tags. $contents = eregi_replace( "]*>", "", $contents ); // Remove all variations of tags. $contents = eregi_replace( "", "", $contents ); // Remove closing tags. $contents = eregi_replace( "]*>", "
  • ", $contents ); // Replace tags with
  • . $contents = eregi_replace( "]*>", "", $contents ); // Remove tags. $contents = eregi_replace( "]*>", "", $contents ); // Remove ALL variations of tags. $contents = eregi_replace( "
    ", "", $contents ); // Remove closing tags. $contents = eregi_replace( "", "", $contents ); // Remove closing tags. $contents = eregi_replace( "", "", $contents ); // Remove closing tags. $contents = eregi_replace( "
    ", "", $contents ); // Remove
    tag... $contents = eregi_replace( "
    ", "", $contents ); // ...alignment calls. $contents = eregi_replace( "
    ", "

    ", $contents ); // Replace


    tags with

    tags. $contents = eregi_replace( "", "", $contents ); // Remove tags. $contents = eregi_replace( "", "", $contents ); // Remove tags. $contents = eregi_replace( "", "", $contents ); // Remove closing tags... // Replace relative url links from links that start with href="flash with URL links... // ...so that relative links don't appear as yoursite.com/whatever.html $contents = eregi_replace( "href=\"flash", "href=\"http://www.drudgereport.com/flash", $contents ); // strips the resulting /'s from your grabbed HTML before outputting to the browser. $contents=stripslashes($contents); echo $contents; // prints the final output of grabbed HTML to your page ?>