Hi! I know why! It is important to use <?php header('what ever'); ?> before anything else. I'm almost sure if there is even an space, TAB or CR/LF before <?php header ... the PHP will create the header (Content type: text/html + ... ) and you can't stop it! My advice is to move <html><head><title>3</title>... down and let <?php header ... to be on top! Between <?php and rest you may put anything except echo ..... :-) I think that PHP has a bug! I know about this problem because I tested php from command line - console input! Tell me what you've done! After is working maybe you publish nocc or horde IMAP reader for Zope or something like that into Zope server as one of 'PHP applications for Zope'! Yours, Ioan. __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/