Monday, July 2, 2012

How to get client's IP address with PHP

<?php
//  get the  client ip address and store into the variable.

$client_ipaddress = $_SERVER["REMOTE_ADDR"];
echo "Client IP is :".$client_ipaddress;
?>

No comments:

Post a Comment