I am trying to run a php script in the background, which is called from another php file:
$WshShell = new COM("WScript.Shell");
$oExec = $WshShell->Run("php -f admin_mailer/ideamailer.class.php arg1 arg2 arg3", 0, false);
The file runs…my problem is that the arguments are not passed. I have print_r($argv) in the executed file which just displays a ‘1’. What is the correct way to pass arguments? I am on a windows server.
I can run the commands with parameters exactly this way, try to escape the parameters to the function escapeshellarg