First I know this variable :
In one of my application, I want to check from PHP script which webserver it is running on. Basically it will be a wordpress plugin which will help Bloggers tweak some configure.
I have created separate process for Apache & Nginx and was also thinking about releasing code as 2 different wordpress plugins.
Then I just got curious to know if there is a FULLPROOF way in PHP to detect webservers flawlessly.
Please consider all cases :: Apache, Nginx, Apache + Nginx, PHP as Apache module, PHP using fastcgi, php-fpm, lighttpd, IIS, etc.
Also its critical for my application to detect combos and proxies presence.