I have python script which I wan to load in my html via .php so, i have added this code in my test.php.
<?php
$command = escapeshellcmd("/var/www/html/ledon.py");
$output = shell_exec($command);
echo $output;
?>
Shell_exec function works as if I put ls -l instead of $command it display all files. So I am not sure what I am doing wrong with escapeshellcmd function. Thanks.