Re: Are calling COM applications a trojan?
| From: | Pierre-Yves Lemaire | Date: | Wed, 11 Apr 2001 09:30:06 +0000 |
| Subject: | Re: Are calling COM applications a trojan? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48165@lists.php.net to get a copy of this message | ||
Well, first off all, what I'm taking about has nothing to do with COM object.
Word will format HTML very nicely, keep it simple with only <br>, <p>, <b> tags.
All you need to do is put this on top of your page,
that is, before you send anyting to the client.
header("Content-Type: application/vnd.ms-word");
Now the client knows that the data will be a word document. (built in HTML but we don't care)
IE will open word if it is on the client pc, netscape will open a download box of a word
document.
I beleive you could built a more sophiticated solution using COM, but
this as always work fine for me and my user's, especially since I hate
word so much :)
py
At 09:18 PM 4/11/01 +0800, you wrote:
download dialog? what will be in that dialog box? And, I read a book saying that you can open a word document on the client side and insert words in it. ----- Original Message ----- From: Pierre-Yves Lemaire <py@e-medhosting.com> To: <php-general@lists.php.net> Sent: Wednesday, 11 April, 2001 3:54 PM Subject: Re: [PHP] Are calling COM applications a trojan? It can't. If you put the appropriate header type (ms-word in this case), IE will open word. Netscape and other browser will open a download dialog box of the document. py At 04:57 PM 4/11/01 +0800, you wrote:+ ====================== + Pierre-Yves Lem@ire + E-MedHosting.com + (514) 729-8100 + pylem@sympatico.ca + ======================Then, how can it open a words document on the client side? ----- Original Message ----- From: Delbono <delbono@dsc.it> To: Zeus <techzeus@pacific.net.sg> Sent: Wednesday, 11 April, 2001 4:32 PM Subject: Re: [PHP] Are calling COM applications a trojan?displaysCom Apps, are not called on a client side. Actually, if you print out the version of the com application, itthethe version of the software installed on the server, not the one onprogramclient. If I have Word2000 on m local PC and on the server I have Word97, a script taht prints App.Version, will print MSWord97. Sent: Wednesday, April 11, 2001 10:26 AM Subject: [PHP] Are calling COM applications a trojan? I'm sure many of you seasoned developers have used COM before (notnecessarywith PHP) but if PHP is a server-side language, how can it call aoncomputer?the client to open. Isn't it as deadly as a hacker opening your+ ====================== + Pierre-Yves Lem@ire + E-MedHosting.com + (514) 729-8100 + pylem@sympatico.ca + ====================== -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.netLets see some sides :) ------------------------------------------ David Chua aka. Zeus Founder, Frozened.com -------------------------------------------- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net