OK, das sollte dann so gehen:
<?
$filename = "http://www.seite.de/file.html";
$handle = fopen ($filename, "r");
$contents = fread ($handle, filesize ($filename));
if (preg_match("/ABC/i", $contents)) {
echo "<script language='JavaScript'>
<!--
window.open('popup.php?site=$filename', '', 'fullscreen=yes');
//-->
</script>"
}
fclose ($handle);
$filename = "http://www.seite.de/file.html";
$handle = fopen ($filename, "r");
$contents = fread ($handle, filesize ($filename));
if (preg_match("/ABC/i", $contents)) {
echo "<script language='JavaScript'>
<!--
window.open('popup.php?site=$filename', '', 'fullscreen=yes');
//-->
</script>
}
fclose ($handle);
und das nun so oft, bis ich alle Seiten durch habe...
Richtig?
Danke schonmal
Stephan