Reading/Writing a MS Word file in PHP

前端 未结 16 1608
借酒劲吻你
借酒劲吻你 2020-11-22 14:35

Is it possible to read and write Word (2003 and 2007) files in PHP without using a COM object? I know that I can:

$file = fopen(\'c:\\file.doc\', \'w+\');
fw         


        
16条回答
  •  余生分开走
    2020-11-22 15:00

    even i'm working on same kind of project [An Onlinw Word Processor]! But i've choosen c#.net and ASP.net. But through the survey i did; i got to know that

    By Using Open XML SDK and VSTO [Visual Studio Tools For Office]

    we may easily work with a word file manipulate them and even convert internally to different into several formats such as .odt,.pdf,.docx etc..

    So, goto msdn.microsoft.com and be thorough about the office development tab. Its the easiest way to do this as all functions we need to implement are already available in .net!!

    But as u want to do ur project in PHP, u can do it in Visual Studio and .net as PHP is also one of the .net Compliant Language!!

提交回复
热议问题