I have a WAMP environment and would like to support WebSockets. For this purpose I bought a module and installed it. However, I would like to be able to run a standalone script once WAMP is started. However, after a long search I did not find out how can I do this with WAMP.
I have, among others read this: Is it possible to launch a php script at apache startup?
However, I do not have an etc folder and I am confused about what should be done and where. The suggested example is:
restart)
[..]
php -q /tmp/myscript.php &
;;
which is nice, I want it to be executed as a background script, but:
I do not know where should this be included
I would like to execute the script on start as well
I wonder whether the syntax is the same for WAMP
I hope that this will not run in the background even if Apache is stopped
I have, among others read this: Is it possible to launch a php script at apache startup?
However, I do not have an etc folder and I am confused about what should be done and where. The suggested example is:
restart)
[..]
php -q /tmp/myscript.php &
;;
which is nice, I want it to be executed as a background script, but:
I do not know where should this be included
I would like to execute the script on start as well
I wonder whether the syntax is the same for WAMP
I hope that this will not run in the background even if Apache is stopped