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: 2007/06/15 14:35 by Glarawyn
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki