Voting

: six plus three?
(Example: nine)

The Note You're Voting On

Gregory Boshoff
18 years ago
The Environment variable $ENV is useful for coding portable platform specific application constants.

// Define a Windows or else Linux root directory path
$_ENV['OS'] == 'Windows_NT' ? $path = 'L:\\www\\' : $path = ' /var/www/';

define('PATH', $path);

echo PATH;

<< Back to user notes page

To Top