Return to Snippet

Revision: 486
at July 16, 2006 07:16 by ringo


Initial Code
function get_number($url){
      $fp = @fopen("$url", "r");
      if($fp){
        while($in = fread($fp, 1024))
          $reply .= $in;
        fclose($fp);
        if(ereg("of about <strong>(.*)</strong> for", $reply, $reg))
        return str_replace(",","",$reg[1]);  
        else
          return "ERR: No result!";
      }
      return "Error : Could not connect to website!";
    }

Initial URL


Initial Description
this is from openbusiness.cc statistics code.

Initial Title
yahoo and google get result number from HTML

Initial Tags
html, google

Initial Language
PHP