0

No access...

Hi,

I'm trying to get data from yahoo SiteExplorerService but it keeps givings me 403 - Forbidden, although when I paste the link in my browser it does show the required information.
CODE
$request = 'http://search.yahooapis.com/SiteExplorerService/V1/pageData?appid='.$yapi.'=&query='.urlencode($sUrl).'&results=0&output=json';
$content = file_get_contents($request);
$data = json_decode($content);
var_dump($request);
var_dump($content);


the var_dump of $request gives me the url which works in my browser
but the var_dump of $content gives me the content of a 403 ...

I don't get it

by
0 Replies

Recent Posts

in PHP Development