Jump to content

Twitter Feed problem


c_pattle

Recommended Posts

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

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.