Snippet: Windows or Not Windows?

/*
Figure out if code is running on a Windows machine.
*/
if (strtoupper(substr(php_uname("s"), 0, 3)) === 'WIN') 
	$windows = TRUE;
else
	$windows = FALSE;
 
windows_or_not.txt · Last modified: 2013/09/12 22:49 (external edit)
[unknown button type]
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
WikiForumIRCBugs
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki