0

INKApi Error on local.search YQL call

When making the following call in the browser, I get the correct xml data:

http://query.yahooapis.com/v1/public/yql?q=select * from local.search where query=\"store\" and latitude=37.7299232672 and longitude=-122.481670077 and radius=3.0

However, when I use file_get_contents in php, it gives me this error:

failed to open stream: HTTP request failed! HTTP/1.0 500 INKApi Error

Also, when using curl, with CURLOPT_RETURNTRANSFER = true, I get an empty string upon curl_exec.

I am not sure what is going on. Any ideas?

by
0 Replies

Recent Posts

in PHP Development