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 184 views
2 answers 235 views
1 answer 126 views
2 answers 140 views
1 answer 258 views
1 answer 209 views
...