PHP Get IP Address of Visitor

Version5
LanguagePHP
CategoryMiscellanious
Rating
   10 (1 votes)
DescriptionThis function returns the IP address of the current web visitor
Instructionscall the function by using something like the following:

$clientIP = getIP();
if ($ip != "unknown"){
echo($clientIP);
} else {
echo('IP could not be found');
}
Code



Comments
No comments have been added
Leave your comment/rating
 

Related Scripts:

No related scripts were found.

Tags



Back to main scripts page