View your ip address

Posted By: Ian on Mar 09, 2011 in PHP, Snippets
<?php
$ip = getenv("REMOTE_ADDR") ;
echo $ip;
?>

Use this simple php snippet for finding out your current ip address.

Ian

leave a comment

About This Site

Dreams are built from lines of code well it's true!
If you can dream it you can usually code it.

I have learned so much from other people on the Internet and this site is for me to give back some of what i have learned and hope people can now learn from me.
Have fun and surf safely,
Ian.J.Gough

Contact Form

captcha

-
blank1
blank2
blank3
blank4
blank5
blank6
blank7
blank8
blank9
blank10
blank11
blank12
blank13
blank14
blank15