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
Check the $_SERVER variable.
echo "";
print_r($_SERVER);
You can then use strstr (or any string comparison function) to check if you are on Windows. In this example, I checked the SERVER_SIGNATURE but you can use whatever key you want.
$isWindows = strstr($_SERVER[SERVER_SIGNATURE], "Win32") !== FALSE;