You can try, $_SERVER['SERVER_SOFTWARE']

-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jiang Miao
Sent: Monday, October 13, 2008 3:44 PM
To: php-general@lists.php.net
Subject: [PHP] How to know what current system is?

Is there any function do that?
when php in Linux it returns linux
in windows it returns windows

I found phpinfo(INFO_GENERAL); output the string System => Linux ubuntu 
2.6.24-19-server. but I have no idea to get that info.

Thanks
Jiang Miao


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to