Ach waarom ook niet
[edit: php tags ipv code tags]
PHP:
1
| <? @$fileJV = fopen("http://www.verstappen.nl/NL/item11/latest.html","r"); $testJV = FALSE; if (!$fileJV) echo "<table cellspacing=0 cellpadding=5 width=100%><TR><td width=100% bgcolor=black><font color=white>Fout op de JV pagina</TD></TR></table>\n"; else {?><base href="http://www.verstappen.nl"><table cellpadding=0 cellspacing=0 border=0 width=100%><tr> <td bgcolor="#000000" colspan="2"> <B><font color="#FF8040"><CENTER> V<font size=-3>ERSTAPPEN.NL <a href="http://www.verstappen.nl/NL">+</a> </td></tr><? $tt=0; while (!feof($fileJV) && $tt<4) { $line = fgets($fileJV, 1000); if (eregi("pijl" , $line)) $testJV = TRUE; if (eregi("TABLE" , $line)){ $tt = $tt + 1; $testJV = FALSE; } if ($testJV == TRUE){ $line = eregi_replace( "=16", "=12", $line ); $line = eregi_replace( "<a href=\"", "<A href=\"http://www.verstappen.nl/", $line ); $line = eregi_replace( "rechts", "_main", $line ); echo $line; } } echo "</TABLE>"; fclose($fileJV); }?> |
[edit: php tags ipv code tags]