I know this is probably easily solved, but I'm trying to locate the PHP
function which returns the client's IP address when they request a page
from the server. I'm having no luck searching the php.net function list.
Kindest regards,
Ron
Yes, they were dinking with the DNS last weekend,
It's not a function, it's a variable:
$_SERVER[REMOTE_ADDR];
- Original Message -
From: Ron Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 21, 2002 3:16 PM
Subject: [PHP] Client IP address
I know this is probably easily solved, but I'm trying to locate
It's not a function, merely a variable.
$REMOTE_ADDR
Chris
--- Ron Smith [EMAIL PROTECTED] wrote:
I know this is probably easily solved, but I'm trying to locate
the PHP function which returns the client's IP address when they
request a page from the server.
--
PHP General Mailing List
--- Chris Shiflett [EMAIL PROTECTED] wrote:
It's not a function, merely a variable.
$REMOTE_ADDR
Actually, $_SERVER[REMOTE_ADDR] is better, as another poster
suggested.
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 21:16 21.11.2002, Ron Smith said:
[snip]
I know this is probably easily solved, but I'm trying to locate the PHP
function which returns the client's IP address when they request a page
from the server. I'm having no luck searching the php.net function
Hi all
How can i get client IP address
thanks,
Narko
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
$REMOTE_ADDR
PHP Manual, Predefined variables
On Tue, 27 Nov 2001, narko wrote:
Hi all
How can i get client IP address
thanks,
Narko
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
7 matches
Mail list logo