Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url = $_GET["URL"];
- $startstring = "<div id=\"yw-cond\">";
- $endstring = "<";
- $file = @fopen ($url,"r");
- $i=0;
- while (!feof($file)) {
- $zeile[$i] = fgets($file,2000);
- $i++;
- }
- fclose($file);
- for ($j=0;$j<$i;$j++) {
- if ($resa = strstr($zeile[$j],$startstring)) {
- $resb = str_replace($startstring, "", $resa);
- $endstueck = strstr($resb, $endstring);
- $resultat .= str_replace($endstueck,"",$resb);
- }
- }
- echo $resultat;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement