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…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
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;