hubs wrote: > This is the error code I'm getting: > > Warning: simplexml_load_file(http://twitter.com/statuses/followers/ > hubs.xml) [function.simplexml-load-file]: failed to open stream: HTTP > request failed! HTTP/1.1 401 Unauthorized in /home/.jerrie/hubs/ > artifacting.com/blog/wp-content/plugins/runPHP/runPHP.php(383) : eval > ()'d code on line 16 > > Warning: simplexml_load_file() [function.simplexml-load-file]: I/O > warning : failed to load external entity "http://twitter.com/statuses/ > followers/hubs.xml" in /home/.jerrie/hubs/artifacting.com/blog/wp- > content/plugins/runPHP/runPHP.php(383) : eval()'d code on line 16 > > > I'm running the code within a wordpress enty. > Thanks.
As I said before, use simplexml_load_string($buffer) instead of trying to fetch the resource using url wrappers. With the code you posted, you're making a cURL call, then throw away the data, then fetch it again - wrongly. -Matt
