C
carstena
Guest
I am trying to run the PHP function shell_exec.
On my local webserver the script works, but on the webserver it gives the error:
Warning: shell_exec() [function.shell-exec]: Unable to execute '7z a -tzip "backup.zip" "backup.txt"'
the script:
<?
$output = shell_exec("7z a -tzip \"backup.zip\" \"backup.txt\"");
echo "<pre>$output</pre>";
?>
i have Googled for it but i didn't found the answer, what could be wrong?
On my local webserver the script works, but on the webserver it gives the error:
Warning: shell_exec() [function.shell-exec]: Unable to execute '7z a -tzip "backup.zip" "backup.txt"'
the script:
<?
$output = shell_exec("7z a -tzip \"backup.zip\" \"backup.txt\"");
echo "<pre>$output</pre>";
?>
i have Googled for it but i didn't found the answer, what could be wrong?