1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

$c = curl_init('http://query.yahooapis.com/v1/public/yql');
//curl_setopt($c, CURLOPT_URL, 'http://query.yahooapis.com/v1/public/yql');
curl_setopt($c, CURLOPT_POST, true);
curl_setopt($c, CURLOPT_POSTFIELDS, "q=select * from contentanalysis.analyze where text='Italian sculptors and painters of the renaissance favored the Virgin Mary for inspiration';");
curl_setopt($c, CURLOPT_HEADER,true);
curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
$op=curl_exec($c);

curl_close ($c);

header('Content-type: text/xml');
echo $op;





?>