{"version":"1.0","type":"rich","title":"PHP get real IP","description":"This example shows a PHP function that determines a visitor’s real IP address by checking several common server variables. It first prioritizes `HTTP_CLIENT_IP` for shared internet connections, then falls back to `HTTP_X_FORWARDED_FOR` for proxy users, and finally uses `REMOTE_ADDR` if present and non-empty. The code relies on the PHP superglobal `$_SERVER` array to inspect these headers, and returns `127.0.0.1` as a localhost fallback when no valid IP is found. It demonstrates a straightforward conditional chain for server-side IP resolution without external libraries.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-1339202?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}