Honestly, I still don't get you. How can the client's Word not open if the script didn't make it open with COM. ----- Original Message ----- From: Hoover, Josh <[EMAIL PROTECTED]> To: 'Pierre-Yves Lemaire' <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, 11 April, 2001 10:31 PM Subject: RE: [PHP] Are calling COM applications a trojan? > >And, I read a book saying that you can open a word document on the client > >side and insert words in it. > > Are you sure this was done on the client side and not on the server side? > Here is a common example used to show a simple use of COM and PHP: > > $word=new COM("word.application") or die("Cannot start word for you"); > print "Loaded word version ($word->Version)\n"; > $word-visible =1 ; > $word->Documents->Add(); > $word->Selection->Typetext("Dit is een test"); > $word->Documents[1]->SaveAs("burb ofzo.doc"); > $word->Quit(); > > This does not work on the client. PHP is on the server side. COM is used > to access local objects, not remote ones. So, in the example, PHP is using > word on the server and opening a document and saving it on the server. This > has nothing to do with a client. The use of COM and PHP would mainly be for > PHP to access COM objects that a business has currently in other > applications. Many times it would be nice for PHP to utilize objects > already written, and in the Windows world right now those objects are > normally accessible via COM if they're accessible at all. > > Josh Hoover > KnowledgeStorm, Inc. > [EMAIL PROTECTED] > > Searching for a new IT solution for your company? Need to improve your > product marketing? > Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify > the process for you. > KnowledgeStorm - Your IT Search Starts Here > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]