Hi,

I'm trying to determine the operating system that my script is running on (for portability concerns). phpinfo() shows the correct information under Environment > OS. The php documentation suggests that this information can be found in $_ENV['OS']. However, var_dump() displays this as NULL. var_dump($_SERVER['OS']) also returns NULL. In fact, var_dump($_ENV) is NULL as well.

How can I determine the operating system that my script is running on?

Thanks!