Why do you have to determine the operating system of the server? Simple. In rare circumstances PHP behaves differently depending on the operating system on which it runs, if it's Linux or Windows (a significant example of this difference we'll see in the next pill). Now, if the script that you’re developing is for you, there's no problem.