Only 5 lines (now with the right script :/ )

From: Date: Thu, 22 Mar 2001 13:10:06 +0000
Subject: Only 5 lines (now with the right script :/ )
Groups: php.general 
Request: Send a blank email to php-general+get-45111@lists.php.net to get a copy of this message
The question I asked before was for this script: <? $open = fopen("http://nu.nl/deeplink_html", "r"); $read = fread($open, 1000); fclose($open); $search = eregi("<DIV><B>nieuws.hoofd</B><UL><LI>(.*)</UL></DIV><DIV><B>nieuws.overig< /B><UL><LI>", $read, $printing); $printing[1] = str_replace("<LI>", "", $printing[1]); $printing[1] = str_replace("</LI>", "<br>", $printing[1]); $printing[1] = str_replace("<A HREF=", "<A target=&quot;_blank&quot; HREF=", $printing[1]); $content = $printing[1]; $content = explode("&#183;", $content); $headlines = sizeof($content); for ($i = 0; $i < $headlines; $i++) { print "$content[$i] $headlines[$i]"; } ?> So is it posible to get only 5 lines out of this script? Thx again

« previous php.general (#45111) next »