Re: PHP script and external C program

From: Date: Tue, 28 May 2002 12:35:41 +0000
Subject: Re: PHP script and external C program
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-99471@lists.php.net to get a copy of this message
http://www.php.net/popen Process Handling. > ----- Original Message ----- > From: "John Holmes" <holmes072000@charter.net> > To: "'ing.Martin Prá¹ek'" <prasek@silesia.cz>; > <php-general@lists.php.net> Sent: Monday, May 27, 2002 8:28 PM > Subject: RE: [PHP] PHP script and external C program > > >> I don't have example code, but what you want is the exec() function. >> Be careful passing user variables to a command line program. > > In PHP docs it seems,that exec() does not solve my problem . It is > easy to grab output of "mycomand" to an array, but it seems , that > there is no way to feed "mycommand"s STDIN with something, ie > commandline is only way to pass some argument or data for > "mycomand"..... > > > I need something like this hypotetical example: > > /bin/mycommand < $variable > $parsed_variable > or > $variable | /bin/mycommand | $parsed_variable > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Dan Hardiker [dhardiker@staff.firstcreative.net] ADAM Software & Systems Engineer First Creative Ltd

« previous php.general (#99471) next »