So when I open it in my browser
<?php
$endpoint = "http://query.yahooapis.com/v1/public/yql";
$query = urlencode('select * from yahoo.finance.quotes where symbol in ("ABBY.L")');
$ch = curl_init($endpoint.'?q='.$query);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
if (curl_error($ch)){
die(curl_error($ch));
}
curl_close($ch);
echo'<pre>';
print_r($result);
?>
I get an error. No definition found for table yahoo.finance.quotes. I was wondering if anyone has this. Any help would be great. Thank!
source
share