They take same time. let me tell you how my code works. it download a file and in the same time it reports a progress by a call back function. this script is called from web. not console. it provides live debug messages. I'll give you a time wise debug log. -- Blog: http://talk.cmyweb.net/ Follow me: http://twitter.com/shiplu