How to check whether your code environment on Windows or on Linux or other OS How to check whether your code environment on Windows or on Linux or other OS wordpress wordpress

How to check whether your code environment on Windows or on Linux or other OS


$_SERVER['SERVER_SOFTWARE'] should do it for you. Use strpos to look for Win32 or Unix.