Posts by Robson Kretzmann • 1 point
1 post
-
0
votes4
answers6030
viewsA: Get Windows user through PHP
to get the user logged in to a PHP computer you can use the following function <?php exec('wmic COMPUTERSYSTEM Get UserName', $user); print_r($user[1]); ?>…