Re: How to find IP ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




--- Juan Escate <jescate@xxxxxxxxxx> wrote:

> 
> Hi, this is my function
> 
>  function devuelve_ip(){
>   if (getenv("HTTP_X_FORWARDED_FOR")) {
>        $ip   = getenv("HTTP_X_FORWARDED_FOR");
>      } 
>   else {
>        $ip   = getenv("REMOTE_ADDR");
>    }
>     return $ip;
>  }
> 
>     Arturo
> 
> 
> 
> [Non-text portions of this message have been
> removed]
> 
> Thanks! it's working
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


PHP Data object relational mapping generator
http://www.metastorage.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux