Re: creating a .doc file in php

From: Date: Thu, 02 Jan 2003 12:09:17 +0000
Subject: Re: creating a .doc file in php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-129927@lists.php.net to get a copy of this message
Edward Peloke wrote:
Thanks Marco, So I would just create the .rtf file with php, then store it on the server and attach it to the e-mail? If most of your document is going to be the same each time, I would create the basic document in MS Word, saving it as an rtf file. Then manually edit it with a text editor (e.g. NotePad) and put in replaceable parameters marked with starting and ending tags (e.g. ##). Then your php code need only parse the file and replace dummy names (e.g. ##name##) with the actual data (e.g. Fred Bloggs).
This is what I do for an application. It is a lot less work than trying to write rtf itself. Hope this helps Chris


« previous php.general (#129927) next »