Program execution in PHP

From: Date: Sun, 21 May 2000 15:49:03 +0000
Subject: Program execution in PHP
Groups: php.dev 
Request: Send a blank email to php-dev+get-19048@lists.php.net to get a copy of this message
Hi, I'm a new one with PHP and hava a problem doing a system call, execute a external program. I want from a php script execute a external executable, this executable runs an other program. The problem is that i don't get back the return value from te last program. Example: PHP SCRIPT ----> BINARY EXECUTABLE ---> BINARY EXECUTABLE test.php3 i=system("ls"); ls exec("run ls",$???,$i) or return(i); system("run ls",$i) When i run the program run from command line all went good but from the script not. What can this be?? I also don't know how to implementate te second (arry) variable from the exec function. Does somebody have sample code?? With regards, Jeroen de Vries Email jrvries@formulaforce.net

« previous php.dev (#19048) next »