I am a php developer, and would like to use php + some windows api to perform a task.
The task is: asking nicely a running windows application to close itself.
It’s certainly not natural to do this with php, but I’m writing my small script in php as this is the language I’m using these days and comfortable with.
There is some support in PHP to call the win32 API. However, it looks like the stability of that extension isn’t very good.
I think the best you can do is to use the system call.