Posted By

stancox on 08/09/10


Tagged

ip


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

convergine


getIP function


 / 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.