Grabbing

From: Date: Fri, 21 Sep 2001 10:53:29 +0000
Subject: Grabbing
Groups: php.general 
Request: Send a blank email to php-general+get-68124@lists.php.net to get a copy of this message
Hi, iam trying to grab info from a webpage. This snippet is the part that does the actual searching... $site = "www.whatever.com/something.html"; $open = fopen($site, "r"); $search = fread($open, 20000); fclose($open); $search = ereg("$begin(.*)$end", $search, $content); What i find strange is that the search only works on the actual text in the html-document. It doesn´t seem to be able to use htmltags as $begin or $end. And another question: does the "search" of $end begins from $begin? Or does it scan the whole document for both strings? Regards # Daniel Alsén | www.mindbash.com # # d@mindbash.com | +46 704 86 14 92 # # ICQ: 63006462 | #

« previous php.general (#68124) next »