[PHP] getting the IP address off a visitor

2002-07-08 Thread Sebastian Marcu
Hi there, I am new to PHP and need some help. I was wondering if there is a way to get hold of the IP address of a site visitor with PHP. I'm trying to develop an interaction where the server would recognise a new visitor from a returning visitor via the IP address. Regards, Sebastian --

Re: [PHP] getting the IP address off a visitor

2002-07-08 Thread Justin French
Hi, Not a good idea. 1. in the case of most dial-up users with an ISP, the IP address is usually dynamically assigned, so next time they dial-up (or re-connect) they will more than likely have a different IP address. 2. in the many cases of computers with a static IP (cable/ADSL/etc), the IP

Re: [PHP] getting the IP address off a visitor

2002-07-08 Thread Chris Hewitt
Sebastian, Yes, look at the data returned by running phpinfo() and you will see it. As discussed very recently on this list, an IP address is not a good way to determine whether this is a new user or not. I suggest you look in the recent archives for the discussion on this topic. HTH Chris

Re: [PHP] getting the IP address off a visitor

2002-07-08 Thread Miguel Cruz
On Mon, 8 Jul 2002, Justin French wrote: 1. in the case of most dial-up users with an ISP, the IP address is usually dynamically assigned, so next time they dial-up (or re-connect) they will more than likely have a different IP address. 2. in the many cases of computers with a static IP