Re: Using an external program.

From: Date: Sun, 21 Apr 2002 18:20:08 +0000
Subject: Re: Using an external program.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-93899@lists.php.net to get a copy of this message
On Sun, 21 Apr 2002, Raymond Lilleodegard wrote: > 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? Look into popen(). miguel

« previous php.general (#93899) next »