RE: [PHP] Header function

2010-02-27 Thread Nick allan
'); header(Content-Disposition: attachment; filename=PurchaseReq.doc); -Original Message- From: Richard Quadling [mailto:rquadl...@googlemail.com] Sent: Saturday, 27 February 2010 8:45 PM To: Nick allan Cc: php-general@lists.php.net Subject: Re: [PHP] Header function On 27 February 2010 04:32

[PHP] Header function

2010-02-26 Thread Nick allan
Hi all Has anyone got any ideas why the following isn't giving me correct filename in the ie save dialogue header('Content-Type: application/msword'); header('Content-Disposition: attachment; filename=PurchaseReq.doc'); I get the save dialogue, but with preq.doc instead of PurchaseReq.doc

[PHP] header function query

2010-02-25 Thread Nick allan
Hi all The situation is as follows I've read some data in from a couple of files into a string variable, made some changes to it and want to send the contents of the string out to the browser as a word document. My code currently looks like the following header('Content-Type: