shell_exec() doesn't seem to work on hosted server
by KenHorse from LinuxQuestions.org on (#59103)
Code:if(isset($_POST['clearflags'])){
$output = shell_exec('php clearflags.php');
}The above works fine on my local development server running Debian 10, PHP 7.4 and Apache 2.4.25.
On my hosted server however (Bluehost), clearflags.php is never executed. My hosting service swears that SAFE MODE is not on in PHP (which is also Version 7.4). If I call from the command line (php clearflags.php), it runs fine.
Thoughts?


$output = shell_exec('php clearflags.php');
}The above works fine on my local development server running Debian 10, PHP 7.4 and Apache 2.4.25.
On my hosted server however (Bluehost), clearflags.php is never executed. My hosting service swears that SAFE MODE is not on in PHP (which is also Version 7.4). If I call from the command line (php clearflags.php), it runs fine.
Thoughts?