RE: [PHP] getting ip address of the user.

2002-09-24 Thread Mark Charette
This comes up so very often ... The answer is - you may be able to get _an_ IP number for a machine that accesssed your site. It is meaningless as a means of identification: Proxies use 1 IP for a number of users. -Original Message- From: Anil Garg [mailto:[EMAIL PROTECTED]] hi, Can i

Re: [PHP] getting ip address of the user.

2002-09-24 Thread Bill Farrell
Hi, Tony... Here's a script I pilfered from online a coupla years back and have modified (over and over). The code would be online, except my ISP is having heartburns lately... Bill WhoAmI Utility This utility can help you identify your browser and your Internet provider. It uses all of the

RE: [PHP] getting ip address of the user.

2002-09-24 Thread Bill Farrell
Hi, Y'all, Here's another suggestion FWIW. I prep a few variables in the htmlhead.php routine, $RemoteHost being one of them. Having some simple names for associated values is kinda handy. One of the biggest strengths of PHP is that there's more than one way to go about solving problems. Here

RE: [PHP] getting ip address of the user.

2002-09-24 Thread Jesse Cablek
Anil Garg scribbled; > > Can i get the ip-address of the machines who accessed my website?? > Plz give the pointer that on what lines shall i start for doing so. > print $_SERVER['REMOTE_ADDR']; -jesse -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] getting ip address of the user.

2002-09-24 Thread Anil Garg
hi, Can i get the ip-address of the machines who accessed my website?? Plz give the pointer that on what lines shall i start for doing so. thanx and regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Getting IP address

2001-09-19 Thread Jon Haworth
: [EMAIL PROTECTED] Subject: Re: [PHP] Getting IP address On Wednesday 19 September 2001 13:13, Jon Haworth wrote: > A better version would be: > > if (getenv(HTTP_X_FORWARDED_FOR)) { > > $ip=getenv(HTTP_X_FORWARDED_FOR); > } else { > $ip=getenv(REMOTE_ADDR); &g

Re: [PHP] Getting IP address

2001-09-19 Thread Tamas Arpad
On Wednesday 19 September 2001 13:13, Jon Haworth wrote: > A better version would be: > > if (getenv(HTTP_X_FORWARDED_FOR)) { > > $ip=getenv(HTTP_X_FORWARDED_FOR); > } else { > $ip=getenv(REMOTE_ADDR); > } > > This checks for proxy forwarding as well, if you just use > REMOTE_ADDR you

RE: [PHP] Getting IP address

2001-09-19 Thread Jon Haworth
-Original Message- From: Andreas Gietl [mailto:[EMAIL PROTECTED]] Sent: 19 September 2001 11:15 To: Andrew Semark; [EMAIL PROTECTED] Subject: Re: [PHP] Getting IP address On Wednesday 19 September 2001 11:37, Andrew Semark wrote: $addr = getenv('REMOTE_ADDR'); > Can anybody t

Re: [PHP] Getting IP address

2001-09-19 Thread Andreas Gietl
On Wednesday 19 September 2001 11:37, Andrew Semark wrote: $addr = getenv('REMOTE_ADDR'); > Can anybody tell me how to get the IP address of the remote machine looking > at the web page. I have two versions of PHP 4 On the box with version > 4.0.1 I can use $HTTP_SERVER_VARS["REMOTE_ADDR"], but

[PHP] Getting IP address

2001-09-19 Thread Aniceto Lopez
this is working for me $REMOTE_ADDR Aniceto Lopez www.laMundial.net download and spread our music -- 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 P

[PHP] Getting IP address

2001-09-19 Thread Andrew Semark
Can anybody tell me how to get the IP address of the remote machine looking at the web page. I have two versions of PHP 4 On the box with version 4.0.1 I can use $HTTP_SERVER_VARS["REMOTE_ADDR"], but on the other server running 4.0.0 this don't work. Is there another way of doing this as it's not

Re: [PHP] Getting ip address of client and displaying a number in decimal format.

2001-09-13 Thread Alexander Skwar
So sprach »Troy Lynch« am 2001-09-13 um 17:48:55 -0500 : > I'm trying to find out how to do 2 things one. I'd like to get the ip > address of the client machine so I can write it to a database. And then I'd -> php.net/ip2long > like to convert a number to show 2 decmials to the right like for mo

RE: [PHP] Getting ip address of client and displaying a number in decimal format.

2001-09-13 Thread Kelly Barrett
ECTED]] > Sent: Friday, 14 September 2001 8:49 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Getting ip address of client and displaying a number in > decimal format. > > > I'm trying to find out how to do 2 things one. I'd like to get the ip > address of the cli

[PHP] Getting ip address of client and displaying a number in decimal format.

2001-09-13 Thread Troy Lynch
I'm trying to find out how to do 2 things one. I'd like to get the ip address of the client machine so I can write it to a database. And then I'd like to convert a number to show 2 decmials to the right like for money etc Thanks Troy -- PHP General Mailing List (http://www.php.net/) To