Article 59103 shell_exec() doesn't seem to work on hosted server

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?latest?d=yIl2AUoC8zA latest?i=agQTRoCMCrk:ngjYf5_KDJg:F7zBnMy latest?i=agQTRoCMCrk:ngjYf5_KDJg:V_sGLiP latest?d=qj6IDK7rITs latest?i=agQTRoCMCrk:ngjYf5_KDJg:gIN9vFwagQTRoCMCrk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments