Help - Search - Members - Calendar
Full Version: Preg Match Problem (file Get Content)
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > PHP
suzee_lk
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

FnCool
it this hosted on a free domain (like whatever.uuuq.com)?
I understand google no longer supports remote connections from free hosted subdomains.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.