shell_exec() Doesn't Show The Output
- by Nathan Campos
I'm doing a PHP site that uses a shell_exec() function like this:
$file = "upload/" . $_FILES["file"]["name"];
$output = shell_exec("leaf $file");
echo "<pre>$output</pre>";
Where leaf is a program that is located in the same directory of my script, but when I tried to run this script on the server, I just got nothing. What is wrong?