hey everybody
i found a bug on the documentation site... i was looking for a code-example for PHP and found this very useful site:
http://developer.yahoo.com/yql/guide/yql-c...es.html#yql_phpbut actually there is a bug in the code (at least it wouldn't work on my server). the first line of this code-snippet is wrong:
CODEBOX
curl_init($yql_query_url);
curl_setopt($session, CURLOPT_RETURNTRANSFER,true);
$json = curl_exec($session);
the right structure would be as following (the declaration of the variable $session is missing):
CODEBOX
$session = curl_init($yql_query_url);
curl_setopt($session, CURLOPT_RETURNTRANSFER,true);
$json = curl_exec($session);
it would be nice, if somebody would correct that error... i was trying to get the code to work for a long time, until i figured it out. so please correct this :-)
thanks