I tried this in another (rather odd) environment and had some success. I took a word document and saved it as HTML and then opened it in a text editor. I used a .doc extension and kept: <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <HTML> <HEAD> <meta http-equiv=Content-Type content="text/html; charset=windows-1252"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 9"> <meta name=Originator content="Microsoft Word 9"> <TITLE> .... </TITLE> <xml> <w:WordDocument> <w:View>Print</w:View> </w:WordDocument> </xml>
Antyhing apart from that was my HTML. When I browse to it it opens as a word document. Presuming you are using apache you could specify that it is to be processed using PHP. Olwen Williams [EMAIL PROTECTED] -----Original Message----- From: Naveed Ahmad [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 06, 2004 8:53 PM To: [EMAIL PROTECTED] Subject: [PHP] generating .doc on the fly I want to save a document in .doc format on the fly but my server is running on a linux machine. Can I still make use of COM object? Or there is some other module which I can easily load on the fly??? somebody told me the link below butI cannot find the module from there....... :S http://www.45.free.net/~vitus/ice/catdoc/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ____________________________________________________________________ CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Safe Air Ltd immediately. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Safe Air. _____________________________________________________________________ For more information on the Safe Air Group, visit us online at http://www.safeair.co.nz/ _____________________________________________________________________ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php