[PHP] Re: How to execute local applications on the client
* Mauricio Pellegrini [EMAIL PROTECTED]: Some one has asked me to set a web page from within wich users could launch local applications. Those applications are allready installed in the client PC. The link on the web page would act as a simple link to start the application. system() -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL PROTECTED] | http://vermontbotanical.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: How to execute local applications on the client
Matthew Weier O'Phinney wrote: * Mauricio Pellegrini [EMAIL PROTECTED]: Some one has asked me to set a web page from within wich users could launch local applications. Those applications are allready installed in the client PC. The link on the web page would act as a simple link to start the application. system() No, that won't work. system() will execute a command on the server, not the client. There is no 'true' way to launch all applications on the client in php. You could however make the client launch things like Word and Excel by sending the proper headers. But this may not work on all, ex if you send a header to simulate a Word document, and the client has OO set as the handler for *.doc, it's going to open OO and not MS Word. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: How to execute local applications on the client
* John Nichel [EMAIL PROTECTED] : Matthew Weier O'Phinney wrote: * Mauricio Pellegrini [EMAIL PROTECTED] : Some one has asked me to set a web page from within wich users could launch local applications. Those applications are allready installed in the client PC. The link on the web page would act as a simple link to start the application. system() No, that won't work. system() will execute a command on the server, not the client. Absolutely correct. Mea culpa. I use PHP on my machine all the time for running scripts, and so the line between server and workstation is often blurred. Even then, I probably wouldn't want system() launching a desktop application, even if I called sudo first to switch to the appropriate user. Thanks for catching this! -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL PROTECTED] | http://vermontbotanical.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php