|
|
#1 |
|
Join Date: Jan 2009
Posts: 3
|
Preg Match problem (file get content)
i was using google search results but suddenly they changed something and now i can not.
php Code: <?php header('Content-type:text/html; charset=utf-8'); $s = file_get_contents("http://www.google.com.tr/search?hl=tr&q=test&meta="); preg_match("/<div class=g>(.*?)<h2 class=r>/Us",$s,$d); echo "<pre>";print_r($d); ?> can you please tell me what is wrong Reply With Quote eruseldarine View Public Profile Send a private message to eruseldarine Find all posts by eruseldarine |
|
|
|
| Check This Out... |
| -- |
|
|
#2 |
|
Join Date: Jan 2009
Posts: 5
|
Hmm.. it returned false because you tried to look for a class that doesn't exist. Please verify it.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Effective Email Content | ArticleJunkie | How To Make Money On The Internet | 1 | 12-01-2012 05:49 AM |
| Signature File Dos and Don'ts | ArticleJunkie | How To Make Money On The Internet | 0 | 11-07-2012 12:39 PM |
| The Content Farm Problem | rhody007 | How To Make Money On The Internet | 0 | 05-11-2011 02:07 AM |
| Repurposing Content | notepage | How To Make Money On The Internet | 0 | 07-21-2009 11:18 AM |
| Preg Match problem (file get content) | senesh | How To Make Money On The Internet | 0 | 02-27-2009 03:39 AM |