shell_exec() Doesn't Show The Output
Posted
by Nathan Campos
on Stack Overflow
See other posts from Stack Overflow
or by Nathan Campos
Published on 2010-05-05T17:32:00Z
Indexed on
2010/05/05
17:38 UTC
Read the original article
Hit count: 300
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?
© Stack Overflow or respective owner