Windows or Not?
From Bebot Wiki 2
Revision as of 22:50, 16 September 2020 by B3b0tUzR (talk | contribs) (Created page with '====== Snippet: Windows or Not Windows? ====== <code php> →Figure out if code is running on a Windows machine.: if (strtoupper(substr(php_uname("s"), 0, 3)) === 'WIN') $win…')
Snippet: Windows or Not Windows?[edit]
/*
Figure out if code is running on a Windows machine.
- /
if (strtoupper(substr(php_uname("s"), 0, 3)) === 'WIN')
$windows = TRUE;
else
$windows = FALSE;