I don't have example code, but what you want is the exec() function. Be
careful passing user variables to a command line program. 


---John Holmes...

> -----Original Message-----
> From: ing.Martin Prášek [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 27, 2002 1:21 PM
> 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
> folowing:
> I have in my script some value, for example "$value"
> and
> 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
$parsed_value ?
> Example code needed.
> thanx

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

Reply via email to