Php
PHP
Contoh menampilkan ip address server
<?php
$command = 'ip addr show eth0 | grep -oP "inet \K[\d.]*"';
$ipaddr = shell_exec($command);
$host = trim($ipaddr);
echo $host;
?>
Koneksi
Database
API
web
PHP
Contoh menampilkan ip address server
<?php
$command = 'ip addr show eth0 | grep -oP "inet \K[\d.]*"';
$ipaddr = shell_exec($command);
$host = trim($ipaddr);
echo $host;
?>
Database
web