How to load a word doc into browser using PHP? [NEED HELP]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
vip2k
Forum Newbie
Posts: 3
Joined: Tue May 08, 2007 8:38 am

How to load a word doc into browser using PHP? [NEED HELP]

Post by vip2k »

Hi PHP Gurus,

I'm trying write a program that can load a word doc (may have pictures) into browser without destroying the format. With that done, is it possible to make each paragraph into a modular or some sort where you can click on it and add comment to it etc...

sample code appreciated.

Thank a lot.
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

vip2k
Forum Newbie
Posts: 3
Joined: Tue May 08, 2007 8:38 am

Post by vip2k »

is there a way that can do it without relying on third party tools?
Begby
Forum Regular
Posts: 575
Joined: Wed Dec 13, 2006 10:28 am

Post by Begby »

There is no easy way to display a word formatted file with PHP let alone make it so people can edit it online then save it to word format. If this really needs to be done you are better off trying to solve the problem with ASP.NET and even then it might be difficult.
Shellyyin
Forum Newbie
Posts: 8
Joined: Thu Sep 10, 2015 1:49 am

Re:

Post by Shellyyin »

Begby wrote:There is no easy way to display a word formatted file with PHP let alone make it so people can edit it online then save it to word format. If this really needs to be done you are better off trying to solve the problem with ASP.NET and even then it might be difficult.
Nope, there is a software can help display a word formatted file with PHP and people can edit it online directly and save it. Try to use Aceoffix. It specializes in edit and save MS Office document online and can generate formatted files online.
Locked