RE: [PHP] Is it possible to call an external client or server program?

2002-03-31 Thread Cal Evans

Martina,

If you mean, from within a browser, is it possible to invoke a program on a
client's machine then...yes,  with a caveat.  If the OS is windows, and the
program has a COM interface and the user has set the security settings to a
moronically low level, it is possible to invoke COM objects via either
VBScript or JavaScript. (JSrcipt).

It's not a good idea. From your side, since you have little or no control
over it. From the users side, they have to lower their security settings to
allow you to do it.  Users who know that means won't want to. Those who
don't will require a lot of hand holding.

My $.02 worth. Hope you found an answer somewhere among the rant.  :)

=C=

*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*


-Original Message-
From: martinahingis [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 31, 2002 6:26 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Is it possible to call an external client or server
program?


Is it possible to call an external program via PHP. The program will most
probably be in server.

My aim is to call a scanner input program and want the client to scan a
paper and upload it.

thanks for help.

martina.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Is it possible to call an external client or server program?

2002-03-31 Thread martinahingis

hmm..
very thanks Cal.

I don't have any problem with security settings or another client side
setting. Because actually I'm using PHP for an application (but not a web
application) just works for the machine which is the server or in the same
LAN with the werver. And all settings of their browsers are made by me. So
that i can make all settings  proper to do so. Also OS is win98 or maybe
win2000. Most scanner's user interfaces can absolutely do their job perfect
on scanning and sending the output to the caller. But the only problem here
I understand is that it's not possible to call an EXE file?


Cal Evans [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Martina,

 If you mean, from within a browser, is it possible to invoke a program on
a
 client's machine then...yes,  with a caveat.  If the OS is windows, and
the
 program has a COM interface and the user has set the security settings to
a
 moronically low level, it is possible to invoke COM objects via either
 VBScript or JavaScript. (JSrcipt).

 It's not a good idea. From your side, since you have little or no control
 over it. From the users side, they have to lower their security settings
to
 allow you to do it.  Users who know that means won't want to. Those who
 don't will require a lot of hand holding.

 My $.02 worth. Hope you found an answer somewhere among the rant.  :)

 =C=

 *
 * Cal Evans
 * Journeyman Programmer
 * Techno-Mage
 * http://www.calevans.com
 *


 -Original Message-
 From: martinahingis [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, March 31, 2002 6:26 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Is it possible to call an external client or server
 program?


 Is it possible to call an external program via PHP. The program will most
 probably be in server.

 My aim is to call a scanner input program and want the client to scan a
 paper and upload it.

 thanks for help.
 
 martina.



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Is it possible to call an external client or server program?

2002-03-31 Thread Cal Evans

If you are running a PHP script (like a shell script or a batch file) then
you can use the back tiks (`) to execute a command on the machine that the
PHP script is running on. (On my keyboard the backtik is on the same key as
the tilde.)

But if you are running this out of a web server then not really. Since the
PHP never gets executed on the client machine. The best you could hope for
was a JavaScript/VBScript solution. Of the two, I'd look hardest at VBscript
since M$ likes it better.

=C=

*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*


-Original Message-
From: martinahingis [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 31, 2002 7:05 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Is it possible to call an external client or server
program?


hmm..
very thanks Cal.

I don't have any problem with security settings or another client side
setting. Because actually I'm using PHP for an application (but not a web
application) just works for the machine which is the server or in the same
LAN with the werver. And all settings of their browsers are made by me. So
that i can make all settings  proper to do so. Also OS is win98 or maybe
win2000. Most scanner's user interfaces can absolutely do their job perfect
on scanning and sending the output to the caller. But the only problem here
I understand is that it's not possible to call an EXE file?


Cal Evans [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Martina,

 If you mean, from within a browser, is it possible to invoke a program on
a
 client's machine then...yes,  with a caveat.  If the OS is windows, and
the
 program has a COM interface and the user has set the security settings to
a
 moronically low level, it is possible to invoke COM objects via either
 VBScript or JavaScript. (JSrcipt).

 It's not a good idea. From your side, since you have little or no control
 over it. From the users side, they have to lower their security settings
to
 allow you to do it.  Users who know that means won't want to. Those who
 don't will require a lot of hand holding.

 My $.02 worth. Hope you found an answer somewhere among the rant.  :)

 =C=

 *
 * Cal Evans
 * Journeyman Programmer
 * Techno-Mage
 * http://www.calevans.com
 *


 -Original Message-
 From: martinahingis [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, March 31, 2002 6:26 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Is it possible to call an external client or server
 program?


 Is it possible to call an external program via PHP. The program will most
 probably be in server.

 My aim is to call a scanner input program and want the client to scan a
 paper and upload it.

 thanks for help.
 
 martina.



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php