Here is my problem. I am keeping a database of faculty information with a web interface. They want me to add the functionality to save their information into a word doc that they can then go in and manipulate.....like a resume writer. Any ideas on the best way to do this?
<?php $string = 'this is a bunch of text that wil be saved as a word doc'; header('Content-type: application/msword'); header('Content-Disposition: attachment; filename="wordfile.doc"'); echo $string; exit(); ?>
Create the text, format it using RTF, save as a .doc .. Creating a native Word doc file will be practically impossible. The file format is just far too complicated.