Tag: PHP Exercise: Get the client IP address

Get the client IP address using PHP
In php $_SERVER is a super global variable witch holds three kinds of bunch information, Header, Paths and Script Location. $_SERVER variable holds the data in associative array format. So we can simply print all data of $_SERVER using the print_r() method. Most of the developers/learners simply use $_SERVER[‘REMOTE_ADDR’] or…
Read More