Is there a way to run a command / method when Apache is about to exit?
I have an application running on Windows with Xampp (for local use only) and you want to do some kind of cleaning method when this application finishes by the user, which happens when the Apache stop button is clicked.
So, any event triggered by xampp or apache or even php that I can use? And the command can be from cmd, php, whatever.
OBS: there must be something before apache closes, so checking windows windows list is not an option.
source
share