Twitter has now turned off Basic Authentication, so apps have to use OAuth.
In case you missed it, I have a page which says how to a PHP twibot using OAuth, and I’m grateful to Shadowfax for highlighting some of changes he had to make to get it work in CentOS.
Enjoy!