PDA

View Full Version : How can i generate RTF Files from HTML


Crow_11111
09-18-2002, 11:44 AM
I want to save a Form as an Rich Text File.(or any other text file)
I have seen many Tools for it, but the all cost a lot of monye, and i want to do it self!
But i have no idea how!

Can anybody help me?
Thanks
Marc

mordred
09-18-2002, 02:36 PM
Originally posted by Crow_11111
I want to save a Form as an Rich Text File.(or any other text file)


Well, if a simple plain text file is ok for you, why don't try this (untested):


$fp = fopen("blahblah.txt", "w");
fwrite($fp, "Here comes the text to be stored");
fclose($fp);

Crow_11111
09-19-2002, 07:39 AM
Thanks! But it would be better to save a rtf, cause i need it for a receipt.

mordred
09-19-2002, 01:57 PM
This article (http://www.phpbuilder.com/columns/nair20020523.php3) about making RTFs in PHP might be helpful.

Crow_11111
09-19-2002, 02:50 PM
Thank you very much!
I thing i'll find what i'm searching for on this site!