$_SERVER['REMOTE_ADDR'] will give you the proxy ip if they have one, and the
browser sends the info, the user might change it to blahblahblah for all we
know...
On 1/4/06, Jay Blanchard <[EMAIL PROTECTED]> wrote:
>
> [snip]
> Is there any way to client's IP address inside a php document. I am
[snip]
Is there any way to client's IP address inside a php document. I am
trying to generate a code that depends on the IP address of the client.
[/snip]
http://us3.php.net/manual/en/reserved.variables.php#reserved.variables.serve
r
$_SERVER['REMOTE_ADDR']
but it may not always be reliabl
Nilanjan Dasgupta wrote:
> Hi,
> Is there any way to client's IP address inside a php document. I am
> trying to generate a code that depends on the IP address of the client.
>
> thanks a lot,
> Nilanjan
>
Give a look at $_SERVER, and more specifically $_SERVER["REMOTE_ADDR"]
http://php.net/
$_SERVER['REMOTE_ADDR']
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server
HTH
Nilanjan Dasgupta wrote:
Hi,
Is there any way to client's IP address inside a php document. I
am trying to generate a code that depends on the IP address of the
client.
thanks a l
Nilanjan Dasgupta wrote:
Hi,
Is there any way to client's IP address inside a php document. I am
trying to generate a code that depends on the IP address of the client.
Yes.
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]
5 matches
Mail list logo