load word document with php

From: Date: Tue, 30 Nov 2004 13:35:10 +0000
Subject: load word document with php
Groups: php.general 
Request: Send a blank email to php-general+get-203141@lists.php.net to get a copy of this message
Hello, i hope this is the right newsgroup. I start working with php. Now, i want loading worddocuments into the with php, change/add some text and save this changes. I found following simple example. <?php $word=new COM("word.application") or die("Cannot start word for you"); $word->visible = 1 ; $word->Documents->Open("Test.doc"); $word->Selection->TypeText("Hello World"); $word->Documents[1]->SaveAs("New Test.doc"); $word->ActiveDocument->Close(false); $word->Quit(false); $word->Release(); $word = null; ?> No error occurs and the new word Document is saved with the changes, but i don't see the document within the webbrowser. What is wrong. Thanks for help Thomas

« previous php.general (#203141) next »