Q:

Find remote IP address in PHP

belongs to collection: PHP Miscellaneous

0

Find remote IP address in PHP

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

<?php
        echo $_SERVER['REMOTE_ADDR'];
?>

Output

192.168.1.10

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

PHP Miscellaneous

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
PHP program to validate an email address... >>
<< Generate random numbers in PHP...