Re: Are calling COM applications a trojan?

From: Date: Thu, 12 Apr 2001 10:49:50 +0000
Subject: Re: Are calling COM applications a trojan?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-48282@lists.php.net to get a copy of this message
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 <Josh.Hoover@knowledgestorm.com> To: 'Pierre-Yves Lemaire' <py@e-medhosting.com>; <php-general@lists.php.net> 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. > jhoover@knowledgestorm.com > > 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 >

« previous php.general (#48282) next »