Home | Mirror | SearchITEYE 博客 | OSChina 博客 | 51CTO 博客

5.4. 操作系統類型

php_uname();
PHP_OS
DIRECTORY_SEPARATOR
PHP_SHLIB_SUFFIX
PATH_SEPARATOR

for example:
if(PATH_SEPARATOR==':'){
	echo 'Linux';
}else{
	else echo 'Windows';
}

		
comments powered by Disqus