title: How can I get my curl statement to correctly read google image guesses?
body: <p>I am creating a little code that reads Google's best guess for images on their image search.</p>
  
  <p>Click on the link so you can see what I am talking about.
  <a href="http://images.google.com/searchbyimage?image_url=http://static.filestube.com/files/images/logo3.gif" rel="nofollow">http://images.google.com/searchbyimage?image_url=http://static.filestube.com/files/images/logo3.gif</a></p>
  
  <p>If you click the link you can see that the results say: Best guess for this image: filestube logo</p>
  
  <p>I want to be able to pull the best guess and return it</p>
  
  <p>HERe IS MY CODE ThAT DOESNT WORK</p>
  
  <pre><code>$ch = curl_init("http://images.google.com/searchbyimage?image_url=http://static.filestube.com/files/images/logo3.gif");
  curl_setopt($ch, CURLOPT_HEADER, 0);
  curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);
  $result = curl_exec($ch);
  curl_exec($ch);
  curl_close($ch);
  preg_match("Best guess for this image:&amp;nbsp;(.*)&lt;/a&gt;", $result, $matches);
  if(empty($matches)){
      echo("No guess on this image. &lt;br /&gt;");
  } else{
      echo("Best guess for this image:");
      print_r($matches);
  }
  </code></pre>
  
  <p>I keeps on returning no guess</p>