Jump to content

getting xml problems


clankill3r

Recommended Posts

I want to gettwitter feeds,

this gives me a xml

http://twitter.com/statuses/user_timeline.rss?screen_name=fleuragemapvv&count=3

 

based on this:

http://www.w3schools.com/PHP/php_xml_simplexml.asp

 

i try to get the xml with:

<?php

$xml = simplexml_load_file("http://twitter.com/statuses/user_timeline.rss?screen_name=fleuragemapvv&count=3");

?>

 

i get this error:

Warning: simplexml_load_file(http://twitter.com/statuses/user_timeline.rss?screen_name=fleuragemapvv&count=3): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /home/vhosting/x/vhost0033377/domains/doekewartena.nl/htdocs/www/temp/twitter03.php on line 2 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://twitter.com/statuses/user_timeline.rss?screen_name=fleuragemapvv&count=3" in /home/vhosting/x/vhost0033377/domains/doekewartena.nl/htdocs/www/temp/twitter03.php on line 2

 

i have no clue, i'm very new to php

can i even use simplexml_load_file cause it has no .xml file type extention.

Link to comment
https://forums.phpfreaks.com/topic/237124-getting-xml-problems/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.