PDA

View Full Version : Documents on the fly in PHP



Protege
14-12-2008, 08:55 PM
I want to create a .doc file in PHP, the only method I found "easy" was to save the document as a html doc (in word with all the layout done etc) and then replace parts like {name} (str_replace etc), then save it with a .doc extension - it worked. However, I want an easier method to be able to do this, so you know any PHP classes or a better methods to create documents please tell me.

P.S I dont want to create PDFs as I want it openable in word.

Tomm
14-12-2008, 09:20 PM
You can use COM but then it would only work on a Windows Server with Office installed.

Protege
14-12-2008, 09:24 PM
I think I'll just create the page in html with the data in, allowing them to then edit the details then submit to convert it into a pdf. Im on a linux box so its a no no unfortunately.

wazup999
15-12-2008, 01:16 AM
what if you use openoffice.org or even abiword? I don't really know just asking :]

Waz ;]

Want to hide these adverts? Register an account for free!