Posted By

kopeo on 08/17/10


Tagged


Versions (?)

get IP


 / Published in: PHP
 

  1. function getip()
  2. {
  3. return (isset($_SERVER['HTTP_X_REAL_IP'])) ? $_SERVER['HTTP_X_REAL_IP'] : $_SERVER['REMOTE_ADDR'] ;
  4. }

Report this snippet  

You need to login to post a comment.