...
Code Block |
---|
<?php $ip = shell_exec("hostname -I"); echo "local IP address={$ip}\n"; ?> |
Above sample is tested on CentOS 7.
...
Code Block |
---|
<?php $ip = shell_exec("hostname -I"); echo "local IP address={$ip}\n"; ?> |
Above sample is tested on CentOS 7.