Hi, based on the TWITTER API helppage I tried the following statement (lets assume username:testaccount with password=password):
$pic_update='curl -u testaccount:password -F image=@'01.png;type=image/ png' http://twitter.com/account/update_profile_image.xml'; print $pic_update; But, this did not work.