A snippet in php to know your ip Address

Well its a small script i have written in php just for testing the use of

$HTTP_SERVER_VARS[“REMOTE_ADDR”];

Handle in php its really use full and help full i think to get you ip in any pphp-logoen test or any thing , well its kind of script kiddies too.
But i am learning 😉

Here is the full code

<?php
$ip = $HTTP_SERVER_VARS[“REMOTE_ADDR”];
echo $ip;
?>

hope it helped you …

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s