i was using google search results but suddenly they changed something and now i can not. <?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); ?> PHP: can you please tell me what is wrong
Yep I did, I forgot try this in your 3 hosts <?php error_reporting(E_ALL); 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); ?> PHP: