So I currently have a script let's just call it foo.js I am attempting to use the following code to execute it with arg's and I have already attempted everything I can find on here eg: doing $output and checking what it says (It says forever running foo.js then that is where the line ends) if I type forever list nothing is being ran. If I run the script normally in node eg: using node instead of forever start it infinitely loads while running the script ofc. I tried nohup aswell :) If anyone can help it would be much appreciated.
Code:
<html>
<body>
<?php
$argy = $_GET["arg1"];
$argx = $_GET["arg2"];
$argz = $_GET["arg3"];
exec("forever start foo.js $argy $argx $argz",$output);
print_r($output);
?>
<br>
</body>
</html>
via Memer
No comments:
Post a Comment