$_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
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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]
$_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
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]
[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
6 matches
Mail list logo