How to get the operating system the currently run PHP

2 Answers

0 votes
echo PHP_OS;




/*
run:

Linux

*/

 



answered Dec 10, 2021 by avibootz
0 votes
echo php_uname();




/*
run:

Linux 4.8.0-41-generic #44~16.04.1-Ubuntu SMP Fri Mar 3 17:11:16 UTC 2017 x86_64

*/

 



answered Dec 10, 2021 by avibootz

Related questions

1 answer 183 views
2 answers 234 views
1 answer 125 views
2 answers 139 views
1 answer 257 views
1 answer 208 views
...