Skip to content

Instantly share code, notes, and snippets.

View basdog22's full-sized avatar
💭
Laraveling...

Vasilis Kerasiotis basdog22

💭
Laraveling...
View GitHub Profile
$ch = curl_init();
$query = 'select * from search.web where query="pizza"';
$url = "http://query.yahooapis.com/v1/public/yql?q=" . urlencode($query) . "&diagnostics=false&env=store://datatables.org/alltableswithkeys&format=json";
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
$response = curl_exec($ch);