Posted By

luman on 09/14/06


Tagged

ip


Versions (?)

Who likes this?

11 people have marked this snippet as a favorite

jonhenshaw
yuconner
blakeb
dmarten
vali29
willcodeforfood
jprice
jearley
mecha
bug5
ringo380


Detect IP


 / Published in: PHP
 

URL: http://www.php.net/getenv

  1. if (getenv("HTTP_X_FORWARDED_FOR")) $ip = getenv("HTTP_X_FORWARDED_FOR");
  2. else $ip = getenv("REMOTE_ADDR");

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: teatraluri on April 15, 2011

dhfhk

You need to login to post a comment.