Hello, This does not directly answer your question, but I think it will help you with many things. I would suggest using the class twitterPHP ( http://twitter.slawcup.com/twitter.class.phps) and execute cURL through the class, that way you wont have many cURL calls. Just a suggestion.
On Tue, May 12, 2009 at 12:05 PM, Yazmin <ywick...@gmail.com> wrote: > > Sadly I need more clarification...and possibly a code example. > > Using PHP, I know that I can successfully get a feed of a user's > latest statuses using this code: > > $ch = curl_init(); > curl_setopt($ch, CURLOPT_URL, $url); > curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); > curl_setopt($ch, CURLOPT_USERPWD, "$this->Username:$this- > >Password"); > $xml = curl_exec($ch); > > $data = simplexml_load_string($xml); > > However, when I send an update, the same code, with the addition of a > line for CURLOPT_POST, returns nothing for me: > > $ch = curl_init(); > curl_setopt($ch, CURLOPT_URL, $url); > curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); > curl_setopt($ch, CURLOPT_USERPWD, "$this->Username:$this- > >Password"); > curl_setopt($ch, CURLOPT_POST, 1); > $xml = curl_exec($ch); > > $data = simplexml_load_string($xml); > > I must be missing something here, right? So what am I not doing right? > > Thanks! > > > On May 9, 3:57 pm, Chad Etzel <jazzyc...@gmail.com> wrote: > > When you post a newstatusupdate, the return value/information should > > contain the newidof the update. > > -Chad > > > -- Peter M. Denton www.twibs.com i...@twibs.com Twibs makes Top 20 apps on Twitter - http://tinyurl.com/bopu6c