Preg Match Problem (file Get Content) |
||
Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.
In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.
Zymic Webmaster Forums Web Design & Development Server Side Scripting PHP |
||
![]() |
Preg Match Problem (file Get Content) |
||
Nov 6 2008, 02:14 PM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 9 Joined: 21-September 08 Member No.: 60,836 |
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 |
|
|
![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users) |
||
| 0 Members: | ||
Forum Jump |
||
| Lo-Fi Version | Time is now: 23rd May 2013 - 11:20 AM |