note 60337 rejected from function.preg-match-all by nlopess

From: Date: Wed, 04 Jan 2006 11:20:13 +0000
Subject: note 60337 rejected from function.preg-match-all by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-101195@lists.php.net to get a copy of this message
Note Submitter: theentity_ica at yahoo dot com ---- $data = implode ("",file('http://www.phpit.net/')); $urlpattern = "/<div class=contentitem>([^`]*?)</div>/"; preg_match_all ($urlpattern, $data, $matches); o/p Warning: Unknown modifier 'd' in /var/www/html/scrape.php on line 11 Warning: Cannot add header information - headers already sent by (output started at /var/www/html/scrape.php:11) in /var/www/html/scrape.php on line 16 The latest content from PHPit (http://www.phpit.net), screen scraped! http://www.wikipedia.org en-us Warning: Invalid argument supplied for foreach() in /var/www/html/scrape.php on line 38 we want all the content from the div tag!

« previous php.notes (#101195) next »