Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • 6
    You might try setting a different useragent; we've had spamming problems before, and we do interesting things with useragents we don't like. Commented Feb 14, 2011 at 17:41
  • 2
    Also, It might not be a good idea to post your API keys Commented Feb 14, 2011 at 17:48
  • 3
    One thing: $output = curl_exec($ch) or die("hhtrjrstjsrjt".curl_error($ch)); will not do what you expect. Basically, it's doing $output = (curl_exec($ch) or die("hhtrjrstjsrjt".curl_error($ch))); in that it's returning a boolean instead of a string. Instead, either move the error check to the next line, or explicitly group it like this: ($output = curl_exec($ch)) or die("hhtrjrstjsrjt".curl_error($ch)); Commented Feb 14, 2011 at 17:48
  • ircmaxell, the main thing thats confusing me here is that it never gets to the next line, even without the "or die". Changing the useragent to that of my browser doesn't seem to do anything either. Commented Feb 15, 2011 at 2:57
  • I'm having the same problem. No errors are thrown, and the script just dies. Commented Mar 26, 2011 at 5:46