I was running a php script in background, and what I tried:
shell_exec('nohup php C:\wamp\www\Management_software\application\views\testcron.php > /dev/null & echo $!');
This is working fine when I opened up the command prompt(cmd
) and tried:
php C:\wamp\www\Management_software\application\views\testcron.php
But this is not working from the php page, how to solve this or any other techniques or what are the modifications I have to make ?