Php

From Server STB
Revision as of 14:11, 20 September 2023 by 172.17.0.1 (talk)
Jump to navigation Jump to search

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