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/ > artifacting.com/blog/wp-content/pl

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? > > > $uname = 'hubs'; > $pwd = 'bungle'; > $twitter_url = 'http://twitter.com/statuses/followers/ > hubs.xml'; > $curl_handle = curl_init(); > curl

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/ artifacting.com/blog/wp-content/plugins/runPHP/runPHP.php(

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, CURLOPT

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 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 > such as Charles wo

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 Sys

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? http://twitter.com/statuses/followers/ hubs.xml'; $curl_handle = curl_init(); curl_setopt($curl_handle,CURLOPT_URL,"$twitter_url"); curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,