Re: how to detect the user's ip when they submit a form?

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

 




hi,

  you can use this function to get the IP number of remote system.

 if(getenv(HTTP_X_FORWARDED_FOR))
     {
     $ipno=getenv(HTTP_X_FORWARDED_FOR);
      }
  else
    {
  $ipno=getenv("REMOTE_ADDR");
    }


regards,

 rajni arya

On Mon, 21 Apr 2003, bo wrote:

> question is the same as the subject.
>
> Thank you.
>
> Bo
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux