note 14516 added to function.exec.php

From: Date: Thu, 02 Aug 2001 12:36:31 +0000
Subject: note 14516 added to function.exec.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16230@lists.php.net to get a copy of this message
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? http://www.php.net/manual/en/function.exec.php

« previous php.notes (#16230) next »