Using an external program.
| From: | Raymond Lilleodegard | Date: | Sun, 21 Apr 2002 18:06:56 +0000 |
| Subject: | Using an external program. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-93896@lists.php.net to get a copy of this message | ||
Hi all!
I am trying to interact with a simple exe program. I manage to get the
program started, but I need to send some commands to it as well. My script
looks like this:
<?php
$var = exec('fax.exe');
$var = shell_exec('cmd S');
$var = shell_exec('cmd fax_test.txt');
$var = shell_exec('cmd 67590000');
?>
And do I need to run the exec() function everytime I would like the program
to do some work for me? Is there a way to access the program later somehow,
without opening a "new" program?
Thankfull for all help and hints! : )
Best regards
Raymond Lilleødegård