I am developing a in house app which is accessed from multiple clients.There are few xml files on the server which need to be recreated every time whenever server starts.
My question is how can I check whether the server is shut-downed or restarted via my php program? which seems abit tricky..;-) so can i run a method on server shutdown?
I am using codeigniter.
Thanks,
You can create a batch file which takes care of creating xml files.
And place that batch file in windows start up folder. So that every time machine starts that batch file will be executed and xml files will be generated.
In batch file call your application which generates the xml files.