Difference between revisions of "Windows or Not?"

From Bebot Wiki 2
Jump to navigationJump to search
(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…')
 
(No difference)

Latest revision as of 22:50, 16 September 2020

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;