Quantcast
Channel: Load xml from another page - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by Mark for Load xml from another page

I think this is a problem with the XML feed itself.See this article.Load the string with file_get_contents, and do a str_replace on the amperand to&So leaving you with$xml =...

View Article



Answer by Jurgo for Load xml from another page

<?php$url = "https://developers.facebook.com/blog/feed/";$xml = str_replace('&','&amp;', file_get_contents($url));$xml = simplexml_load_string($xml);print_r($xml);?>

View Article

Answer by Ties for Load xml from another page

it could be the case that you need to encode the url as this page suggestssimplexml_load_file(rawurlencode('https://developers.facebook.com/blog/feed/'))if that doesnt work you can try to load the file...

View Article

Load xml from another page

I'm trying to load this page https://developers.facebook.com/blog/feedin my site with no luck. I'm using this code<?php$xml = simplexml_load_file('https://developers.facebook.com/blog/feed/');...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images