Voting

Please answer this simple SPAM challenge: one minus one?
(Example: nine)

The Note You're Voting On

Gregory Boshoff
12 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