Posted By

Push on 07/20/11


Tagged

php ip address ip-address


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

tux-world


Get user IP Address with PHP


 / Published in: PHP
 

  1. <?php
  2.  
  3. $ip = $_SERVER['REMOTE_ADDR'];
  4. echo "Your IP address is $ip";
  5.  
  6. ?>

Report this snippet  

You need to login to post a comment.