RE: How to know what current system is?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You can try, $_SERVER['SERVER_SOFTWARE']

-----Original Message-----
From: news [mailto:news@xxxxxxxxxxxxx] On Behalf Of Jiang Miao
Sent: Monday, October 13, 2008 3:44 PM
To: php-general@xxxxxxxxxxxxx
Subject:  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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux