PHP script and external C program

From: Date: Mon, 27 May 2002 17:20:53 +0000
Subject: PHP script and external C program
Groups: php.general 
Request: Send a blank email to php-general+get-99386@lists.php.net to get a copy of this message
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 its stdout a $parsed_value. How to run external program (for example /bin/something ), write to its STDIN $value and then read from its STDOUT to variable $parsed_value ? Example code needed. thanx

« previous php.general (#99386) next »