That code will no longer work, basic authentication is no longer support for the Twitter API. You will need to use OAuth to do so.
You can find some examples of using the twitter-async library written by Jaisen Mathai at: https://github.com/dordotky/oauth-twitter-examples Hope this helps. Scott. On 17 Mar 2011, at 16:07, steiljesoc wrote: > I'm using the my_twitter PHP library from twitter website but every > time I try to post a status I get an invalid username/password. Here's > the code that's making the curl call. > > Any ideas? > > $ch = curl_init(); > curl_setopt($ch, CURLOPT_URL, $url); > curl_setopt($ch, CURLOPT_HTTPAUTH, > CURLAUTH_ANY); > curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); > curl_setopt($ch, CURLOPT_USERPWD, > $this->Username.':'.$this- >> Password); > curl_setopt($ch, CURLOPT_GET, true); > curl_exec($ch); -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
