Forum Statistics

  • Forum Members: 4,502
  • Total Threads: 3,657
  • Total Posts: 1
There are 1 users currently browsing forums.

Partner Sites

Reply
Old 03-07-2009, 06:43 AM   #1 (permalink)
 
Status: Newbie
Join Date: Feb 2009
Posts: 6

Rep Power: 14 shagyba is on a distinguished road



Default 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

_________________
Curtains
Custom Electronic
shagyba is offline Add Infraction for shagyba   Reply With Quote


Reply

Bookmarks

Tags
None


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may post new threads
You may post replies
You may post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.5.0 RC2