We can get information about the operating system , host name, release name, version information and machine type by using php_uname function. Here is the simple command
<?Php
echo php_uname();
?>
The output is here
Windows NT Alex 6.2 build 9200 (Unknow Windows version Business Edition) i586
It can also take parameters to give specific information
'a' about all information below given
's' Operating system
'n' Host name
'r' release name
'v' version name
'm' machine type
Here is a sample cod to execute to know about the PHP environment.
Windows NT Alex 6.2 build 9200 (Unknow Windows version Business Edition) i586
Windows NT Alex 6.2 build 9200 (Unknow Windows version Business Edition) i586
Windows NT
Alex
6.2
build 9200 (Unknow Windows version Business Edition)
i586