PHP program execution problem

From: Date: Sun, 21 May 2000 16:33:07 +0000
Subject: PHP program execution problem
Groups: php.general 
Request: Send a blank email to php-general+get-240@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) return(i); or 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.general (#240) next »