i can't execute the function system() in my php script when i submit my form from a weg page. It's strange because the function system() works when i execute the php directly from the command line (for the debug , i put by myself a value of $_POST).
My script more or less looks like that :
<?php
$temp = $_POST;
$js = json_encode($temp , true);
$fp = fopen('temp.js' , "w");
fputs($fp , $js);
fclose($fp);
$handle = system("sudo nohup php script2.php &");
?>