[PHP] Can I get the IP address from a visitor?

2009-12-01 Thread Lars Kristiansson
Hi! This is probably the wrong forum. Please redirect me if im out of place. I would like to find out what IP address my visitor uses when visiting a php script page on my domain. This page would contain a form in which the visitor would state his/her message. My goal is to create

RE: [PHP] Can I get the IP address from a visitor?

2009-12-01 Thread Jason
] Can I get the IP address from a visitor? Hi! This is probably the wrong forum. Please redirect me if im out of place. I would like to find out what IP address my visitor uses when visiting a php script page on my domain. This page would contain a form in which the visitor would state his/her

Re: [PHP] Can I get the IP address from a visitor?

2009-12-01 Thread Lester Caine
Lars Kristiansson wrote: Hi! This is probably the wrong forum. Please redirect me if im out of place. I would like to find out what IP address my visitor uses when visiting a php script page on my domain. This page would contain a form in which the visitor would state his/her message. My

Re: [PHP] Can I get the IP address from a visitor?

2009-12-01 Thread Ali Asghar Toraby Parizy
It is very simple: $ip=$_SERVER['REMOTE_ADDR']; On Tue, Dec 1, 2009 at 1:47 PM, Lester Caine les...@lsces.co.uk wrote: Lars Kristiansson wrote: Hi! This is probably the wrong forum. Please redirect me if im out of place. I would like to find out what IP address my visitor uses when