I want to CURL to Google to see how many results it returns for a certain search.
I\'ve tried this:
$url = \"http://www.google.com/search?q=\".$str
Use a GET request instead of a POST request. That is, get rid of
curl_setopt($ch, CURLOPT_POST, true);
Or even better, use their well defined search API instead of screen-scraping.