I have a PHP script inside
c:users\xampp\htdocs\myapp\myphpscript.php
What I want is to make a windows service that runs this PHP script in the background. So I searched for some questions here but they were not effective. Is there anyone who can help me to make a windows service using nssm that executes for my script.
Create a batch file with following content and put it in windows startup ;)
start /b path-to-php-installation\php c:\users\xampp\htdocs\myapp\myphpscript.php