May 29, 2020 14:18
but not I couldn't start it as a service
May 29, 2020 14:16
the aim is to be as light as possible, even portable
May 29, 2020 14:10
and the script itself would stop if it can find another instance itself running
May 29, 2020 14:09
the user would reach the main page of the app which would start the script.
May 29, 2020 14:07
I think it is not enough cross-platform, I am going to start it with popen from the php main app
May 29, 2020 14:03
as "threaded", this script is intended to run in background to "announce" the upnp server
May 29, 2020 13:58
I also looked around ignore_user_abort function but could find nothing
May 29, 2020 13:53
I am pretty sure there should be a trivial way of getting this... but couldn't find it
May 29, 2020 13:52
I am already having some hard time with all the socket things...
May 29, 2020 13:51
I guess it can deal with any keyboard interruption (ie user input), but anyway ctrl-something
May 29, 2020 13:49
it is not mine but I don't like the idea of having part of the application in php and another part in another language
May 29, 2020 13:48
you can find the python script I am translating in php here : github.com/ttyridal/phpdlna/blob/master/tools/announce.py
May 29, 2020 13:48
thanks for thet help :)
May 29, 2020 13:46
I don't know how to make it more understandable than how to translate the a python except KeyboardInterrupt: pass statement in php.
May 29, 2020 13:46
the whole code is embedded in the try block, it can happen anywhere. Maybe ̀exception` is not the right approach and signals or events should be handled instead (if better...)
May 29, 2020 13:46
The thing I want to catch is the same as the one catched by the python KeyboardInterrupt