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 191 views
2 answers 241 views
1 answer 131 views
2 answers 145 views
1 answer 260 views
1 answer 216 views
...