I wouldn\'t know under what keyword to look for this in the PHP database, so I\'m asking here.
Reason I want to know is because of how different Operating Systems handle
Lots of answers aleady, but here is my 2cents:
function windows_server()
# Purpose: Check if server is Windows
{
return in_array(strtolower(PHP_OS), array("win32", "windows", "winnt"));
}
## --------------------------------------------------------
function linux_server()
# Purpose: Check if server is Linux
{
return in_array(strtolower(PHP_OS), array("linux", "superior operating system"));
}