I don't have example code, but what you want is the exec() function. Be
careful passing user variables to a command line program.
> -----Original Message-----
> From: ing.Martin Prášek [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 27, 2002 1:21 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP script and external C program
> Problem. I have a php 4.0.6. on linux as Apache module. I need to do
> I have in my script some value, for example "$value"
> in /bin on my linux box c language program called "something". (I need
> speed) .
> I need to parse $value thru stdin /bin/something program to get from
> stdout a $parsed_value.
> How to run external program (for example /bin/something ), write to
> STDIN $value and then read from its STDOUT to variable
> Example code needed.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php