note 75020 deleted from function.preg-match-all by tularis

From: Date: Tue, 08 May 2007 22:51:31 +0000
Subject: note 75020 deleted from function.preg-match-all by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-126343@lists.php.net to get a copy of this message
Note Submitter: Tontonq at hotmail dot com Reason: useless ---- Example a source for getting links from google result page <?php $lang = "en"; # en tr de .. $word = urlencode("we love php"); # u know why we have to use urlencode : ) $data = file_get_contents("http://www.google.com.tr/search?hl=$en&q=$word"); # im coming on preg_match_all("'<h2 class=r><a href=\"(.*?)\"'",$data,$results); #getting results for($i=0;$i<=count($results[1])-1;$i++) { echo "link = " . $results[1][$i] . "<br>\n"; #dumping them :) } ?> thanx

« previous php.notes (#126343) next »