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 171 views
2 answers 223 views
1 answer 116 views
2 answers 134 views
1 answer 250 views
1 answer 199 views
...