PHPerKaigi 2019


Please answer this simple SPAM challenge: min(four, one)?
(Example: nine)

The Note You're Voting On

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