<?Php
echo php_uname();
?>
The output is here
Windows NT Alex 6.2 build 9200 (Unknow Windows version Business Edition) i586
'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.
<?Php
echo php_uname();
echo "<br><br>";
echo php_uname('a');
echo "<br><br>";
echo php_uname('s');
echo "<br><br>";
echo php_uname('n');
echo "<br><br>";
echo php_uname('r');
echo "<br><br>";
echo php_uname('v');
echo "<br><br>";
echo php_uname('m');
?>
The sample output in a windows machine is here.
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
echo PHP_OS;
Output ( may change based on your system )
WINNT
PHP Version
Collect php.ini settings by using ini_get()
Introduction to PHPphpinfo() All about PHP configuration
Guide to installation and How to write our first PHP Script
Joh | 24-06-2016 |
Great article. What was the OS running that php? |