Re: Why isn't this code snippet working

2008-12-25 Thread Matthias Bauer
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/

Why isn't this code snippet working

2008-12-24 Thread hubs
I'm a total n00b. Could somebody tell me why this code doesn't work? ?php $uname = 'hubs'; $pwd = 'bungle'; $twitter_url = 'http://twitter.com/statuses/followers/ hubs.xml'; $curl_handle = curl_init();

Re: Why isn't this code snippet working

2008-12-24 Thread Cameron Kaiser
I'm a total n00b. Could somebody tell me why this code doesn't work? Can you be more specific about the exact failure? A trace from a proxy such as Charles would also be helpful. -- personal: http://www.cameronkaiser.com/ -- Cameron Kaiser * Floodgap

Re: Why isn't this code snippet working

2008-12-24 Thread Alex Payne
You also want to obscure any passwords you paste as part of code samples. On Wed, Dec 24, 2008 at 09:50, Cameron Kaiser spec...@floodgap.com wrote: I'm a total n00b. Could somebody tell me why this code doesn't work? Can you be more specific about the exact failure? A trace from a proxy

Re: Why isn't this code snippet working

2008-12-24 Thread Chad Etzel
I'm guessing you probably need to make it a POST request: curl_setopt($ch, CURLOPT_POST, 1); and yes, you should probably change your password if it wasn't already changed when you posted :D For reference, here are all of the curlopts I set when making requests: curl_setopt($ch,

Re: Why isn't this code snippet working

2008-12-24 Thread hubs
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/

Re: Why isn't this code snippet working

2008-12-24 Thread hubs
hubs wrote: I'm a total n00b. Could somebody tell me why this code doesn't work? ?php $uname = 'hubs'; $pwd = 'bungle'; $twitter_url = 'http://twitter.com/statuses/followers/ hubs.xml'; $curl_handle = curl_init();