I am using Windows 7 Ultimate, PHP 5.2, VMWare (with Ubuntu Server V11.04)
My plan is to create an environment variable in both the linux and windows platforms, and to make them work in PHP. So I created the variable "ROOT_DIR" in Windows and another "ROOT_DIR" variable in Windows.
I have this code in PHP that I expect to work in both the platforms:
<?php
echo 'My username is ' .$_ENV["ROOT_DIR"] . '!';
?>
But in Linux, all it outputs is NULL. I wonder what I'm doing wrong here. Any help would be appreciated.