PHP CLI / FPM : get real Server IP (neither Hostname nor 127.0.0.1)

Solution

        $ip = $_SERVER['SERVER_ADDR'] ?? shell_exec("hostname -I");

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare