Re: [PHP-DB] ip address

2004-09-30 Thread Philip Thompson
Ramil, On Sep 30, 2004, at 1:17 AM, Ramil Sagum wrote: On Thu, 30 Sep 2004 11:00:35 +0530, balwantsingh <[EMAIL PROTECTED]> wrote: i tried the $_SERVER['REMOTE_ADDR'] it is giving ip address of server which is hosting the webpage not the user's ip address. pls. suggest how can IP address of an

RE: [PHP-DB] ip address

2004-09-30 Thread Darryl
x27;]) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], "unknown")) $ip = $_SERVER['REMOTE_ADDR']; else $ip = "x"; // if this happens, then oh noz :-( return $ip; } -Original Message- Fr

Re: [PHP-DB] ip address

2004-09-29 Thread Ramil Sagum
On Thu, 30 Sep 2004 11:00:35 +0530, balwantsingh <[EMAIL PROTECTED]> wrote: > i tried the $_SERVER['REMOTE_ADDR'] it is giving ip address of server which > is hosting the webpage not the user's ip address. pls. suggest how can IP > address of an user can be obtained. what exactly did you do? the

Re: [PHP-DB] ip address

2004-09-29 Thread Philip Thompson
balwant, It seems to be working for me. I have looked at it from multiple computers, and it always gives the ip of that computer. Try for yourself: http://housing.uark.edu/resnet/ip.php Let me know if you get something other than your ip. ~Philip balwantsingh wrote: i tried the $_SERVER['REMOTE_A

[PHP-DB] ip address

2004-09-29 Thread balwantsingh
i tried the $_SERVER['REMOTE_ADDR'] it is giving ip address of server which is hosting the webpage not the user's ip address. pls. suggest how can IP address of an user can be obtained. with best wishes balwant -Original Message- From: Philip Thompson [mailto:[EMAIL PROTECTED] Sent: Thu

RE: [PHP-DB] IP Address?

2002-04-19 Thread Boaz Yahav
PROTECTED] Subject: RE: [PHP-DB] IP Address? Thanks, Craig. That was exactly what I was looking for! -Rob -Original Message- From: Craig Vincent [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 2:35 PM To: Rob Day; [EMAIL PROTECTED] Subject: RE: [PHP-DB] IP Address? > How c

RE: [PHP-DB] IP Address?

2002-04-19 Thread Rob Day
Thanks, Craig. That was exactly what I was looking for! -Rob -Original Message- From: Craig Vincent [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 2:35 PM To: Rob Day; [EMAIL PROTECTED] Subject: RE: [PHP-DB] IP Address? > How can I find out the IP address of the cli

RE: [PHP-DB] IP Address?

2002-04-19 Thread Craig Vincent
> How can I find out the IP address of the client requesting a > given php file? > I know that you can use $HTTP_SERVER_VARS["REMOTE_ADDR"] in more recent > versions of PHP. Unfortunately, we only have PHP3.0.14 and I don't think > that this option is available in our ancient version. I also can't

[PHP-DB] IP Address?

2002-04-19 Thread Rob Day
How can I find out the IP address of the client requesting a given php file? I know that you can use $HTTP_SERVER_VARS["REMOTE_ADDR"] in more recent versions of PHP. Unfortunately, we only have PHP3.0.14 and I don't think that this option is available in our ancient version. I also can't use serve

[PHP-DB] IP address datatype - any ideas or pointers?

2002-04-06 Thread Frank Flynn
Hi All, I'm just starting on a database to track IP addresses. I'm thinking about how best to store the IP address - 4 tinyints, varchar or char; as one big varchar or 4 chunks? We will eventually want to look at things by net or subnet and being able to search on the various parts of the addre