How to get information about the operating system PHP is running on in PHP

2 Answers

0 votes
echo php_uname();



/*
run:
    
Windows NT MY-PC 6.1 build 7601 (Windows 7 Business Edition Service Pack 1) i586 
       
*/

 



answered Jul 14, 2016 by avibootz
0 votes
echo PHP_OS;

/*
run:
    
WINNT 
       
*/

 



answered Jul 14, 2016 by avibootz

Related questions

2 answers 247 views
1 answer 231 views
1 answer 203 views
1 answer 191 views
1 answer 243 views
...