QReflection

Package: QReflection Summary: Retrieve the structure of a class using reflection Groups: Data types, PHP 5 Author: Tom Schaefer Description: This class can be used to retrieve the structure of a class using reflection. It queries a given clas...

How to Get and Show IP Address Using PHP and JavaScript Print E-mail
User Rating: / 10
PoorBest 
This small tutorial will help you in learning how to get and show IP Address using PHP and JavaScript.

To Show IP Address via PHP 

 <?
$remote_address = getenv("REMOTE_ADDR");
echo "Your IP address is $remote_address.";
$browser_type = getenv("HTTP_USER_AGENT");
echo "You are using $browser_type.";
?>

 

To show the IP Address via JavaScript 

 var ip= '<!--#echo var="REMOTE_ADDR"-->';
document.write("Your IP Address is :"+ip+" ");

 

 
< Prev   Next >