note 14516 rejected from function.exec by cece

From: Date: Sat, 16 Aug 2003 14:40:59 +0000
Subject: note 14516 rejected from function.exec by cece
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-54370@lists.php.net to get a copy of this message
Note Submitter: yong-q@cosix.com.cn ---- i want to execute print.out to return the output to $res,but it is empty. print.c: main() {printf("it is test" )} test.php: <? $res=exec(print.out); echo $res; $PATH=..........:/tmp/;export $PATH test.php: <? $res=exec("ls /home"); echo $res; ?> result:/usr why?

« previous php.notes (#54370) next »