I want to do small "server software check" to make sure that my PHP application is running on Apache.
I want to warn my users about security problems when they run my web application on Microsoft IIS servers.
I have some SSL-connection checks and they do not work under IIS, and I'm too lazy to write separate functions for IIS support.
I need a function that checks software, not "manual check" as @Eda190 suggested.