Is there any way to get the PC name (hostname) in PHP on Linux server hosting? The shell_exec
function is not working.
I am using this code:
$a = shell_exec('ipconfig/all');
echo $a;
Is there any way to get the PC name (hostname) in PHP on Linux server hosting? The shell_exec
function is not working.
I am using this code:
$a = shell_exec('ipconfig/all');
echo $a;