Get server operating system in PHP

Asked

Viewed 112 times

2

How can I get the server operating system in PHP? I’d like to return something like this:

Windows 7 Service Pack 1 x64

1 answer

3

Take a look at the function and make sure it’s what you need.

php_uname('s')
php_uname('m')
php_uname('v')

Php-uname

Browser other questions tagged

You are not signed in. Login or sign up in order to post.