I have a PHP code that needs to run in background (no cronjobs or similar options) that is complete, but I just can't call it in the background. I'm trying the following:
$files = $_GET['files'];
$id = $_GET['id'];
pclose(popen("start /B D:\\server\\php\\php.exe D:\\server\\www\\whatever\\importat\\import.php?files=".$files."&id=".$id." 2>nul >nul", "r"));
But it' never runs. If I go and run import.php manually, it works without fail.
PS: I can't change the import.php.
Help?