c_pattle Posted July 7, 2010 Share Posted July 7, 2010 I have a twitter feed on my website which works fine when I try it locally but as soon as I upload the script to my webspace I get this error. I don't understand why it would work locally and not when I upload it. Could this be a problem with the permissions? Warning: DOMDocument::load(http://twitter.com/statuses/user_timeline/158896562.rss) [domdocument.load]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /web1/user25846/website/contact.php on line 24 Warning: DOMDocument::load() [domdocument.load]: I/O warning : failed to load external entity "http://twitter.com/statuses/user_timeline/158896562.rss" in /web1/user25846/website/contact.php on line 24 I have pasted line 24 below. $doc = new DOMDocument(); $doc->load('http://twitter.com/statuses/user_timeline/158896562.rss'); Link to comment https://forums.phpfreaks.com/topic/207021-twitter-feed-problem/ Share on other sites More sharing options...
AbraCadaver Posted July 7, 2010 Share Posted July 7, 2010 allow_url_fopen needs to be On in php.ini or you won't be able to grab content from URLs with certain functions. Link to comment https://forums.phpfreaks.com/topic/207021-twitter-feed-problem/#findComment-1082521 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.