if (OC_Util::runningOnWindows()) { echo "This server is running on Windows!"; } else { echo "This server is not running on Windows."; }This code example shows how to use the runningOnWindows function to check if the server is running on Windows or not. If the function returns true, the code will output "This server is running on Windows!" otherwise it will output "This server is not running on Windows." Package Library: The OC_Util package library is part of the ownCloud server core, which is an open-source file sharing and collaboration platform.