Buying i want solution for small php programing error. payment 6 $ .

Discussion in 'Programming' started by someone100, May 13, 2010.

  1. #1
    i want to know how i can scan the search result because then i scan a static wiki page it works.

    php code :
    results :
     
    someone100, May 13, 2010 IP
  2. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    use php curl, maybe it helps
     
    gapz101, May 13, 2010 IP
  3. cosminx2003

    cosminx2003 Active Member

    Messages:
    581
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Wikipedia figured out that's a bot, you must trick them, pm me for the full solution.
     
    cosminx2003, May 13, 2010 IP
  4. atinder90

    atinder90 Active Member

    Messages:
    134
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    i can help pm me for a good solution
     
    atinder90, May 13, 2010 IP
  5. codebreaker

    codebreaker Well-Known Member

    Messages:
    281
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    Wiki figured out you were a bot. :)
    Use this function :
    
    function get_web_page( $url )
    {
        $options = array(
            CURLOPT_RETURNTRANSFER => true,     // return web page
            CURLOPT_HEADER         => false,    // don't return headers
            CURLOPT_FOLLOWLOCATION => true,     // follow redirects
            CURLOPT_ENCODING       => "",       // handle all encodings
            CURLOPT_USERAGENT      => "spider", // who am i
            CURLOPT_AUTOREFERER    => true,     // set referer on redirect
            CURLOPT_CONNECTTIMEOUT => 120,      // timeout on connect
            CURLOPT_TIMEOUT        => 120,      // timeout on response
            CURLOPT_MAXREDIRS      => 10,       // stop after 10 redirects
        );
    
        $ch      = curl_init( $url );
        curl_setopt_array( $ch, $options );
        $content = curl_exec( $ch );
        $err     = curl_errno( $ch );
        $errmsg  = curl_error( $ch );
        $header  = curl_getinfo( $ch );
        curl_close( $ch );
    
        $header['errno']   = $err;
        $header['errmsg']  = $errmsg;
        $header['content'] = $content;
        return $header;
    }
    
    Code (markup):
     
    codebreaker, May 14, 2010 IP
  6. someone100

    someone100 Peon

    Messages:
    171
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    this spacific issue was solved . thanks for cosminx2003, sicario . but we can work together next time . just pm me.
     
    someone100, May 14, 2010 IP