I’m working on a server that is using PHP 4.4.9(doesn’t use PHP 5 and I can’t upgrade)
I need to write a action that will take an existing PHP page and convert it to a similar looking word document.
How can I do such a thing?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Update
Apparently the only surefire way to convert HTML to DOC under PHP4 would be to use an external tool and call it through exec:
One option would be to grab HTML output and feed it to a PDF converter. It isn’t exactly a Word document but just might do the trick.
For PHP4: