Hi Francois, did you try fwrite instead of echo? The following website says fwrite should be used instead of echo or print in cli contexts. http://articles.sitepoint.com/article/php-command-line-1 Maybe this could be a cleaner way to solve the problem instead of playing around with output buffers... Bye, Fabrizio