EDIT:
Habe es mit file_get_contents() gemacht, aber ebenso erfolglos:
$request_url = 'http://shopping.yahooapis.com/ShoppingService/v2/catalogListing?appid=YahooDemo&idtype=brand,model&idvalue=Sony,PSP&getspec=1&getreview=1';
ini_set('user_agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1');
$file = file_get_contents($request_url);
$xml = simplexml_load_file($file);
var_dump($xml);
Und das bekomm ich geliefert:
Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "<?xml version="1.0" encoding="utf-8"?> <Catalogs xmlns="urn:yahoo:merchoffers" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:yahoo:merchoffers http://shopping.yahooapis.com/shoppingservice/v2/cataloglisting.xsd"> <Catalog ID="1951018158" zip=""> <Offers totalOffers="0" /> <Reviews firstReviewPosition="1" totalReviewsAvailable="489" totalReviewsReturned="10"> <Review> <Title>The iPod of games and movies</Title> <Reviewer>nsorens</Reviewer> <CreateTime>1111979522</CreateTime> <HelpfulRecommendations>233</HelpfulRecommendations> <TotalRecommendations>275</TotalRecommendations> <Ratings> <Rating ratingType="Overall" in C:\xampp\htdocs\jahoo api\test.php on line 9
bool(false)