Results 1 to 1 of 1
  1. #1
    Join Date
    Jul 2008
    Posts
    4

    Unanswered: 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


    ______________________
    Links removed - pootle flump
    Last edited by pootle flump; 07-23-08 at 08:23.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •