Re: [PHP] Client IP

2004-07-08 Thread John Nichel
John W. Holmes wrote: Trust me. Riggtt. Like we're going to trust the likes of you. I guess the cheque's in the mail too, eh? ;) -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Client IP

2004-07-08 Thread Tim Van Wassenhove
In article [EMAIL PROTECTED], Rosen wrote: :) Ok - then how linux server communicate with client - the server must have IP adress to whitch to send data. Rosen wrote: IP adress not send ?!? And how server communicate with client ? For example people on a lan (with let's say ip

Re: [PHP] Client IP

2004-07-08 Thread Rosen
Ok - thie is enought for me - to see the adres of proxy server. :) Tim Van Wassenhove [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] In article [EMAIL PROTECTED], Rosen wrote: :) Ok - then how linux server communicate with client - the server must have IP adress to whitch to send

Re: [PHP] Client IP

2004-07-08 Thread Rosen
I don't understand :) John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] John W. Holmes wrote: Trust me. Riggtt. Like we're going to trust the likes of you. I guess the cheque's in the mail too, eh? ;) -- By-Tor.com It's all about the Rush

[PHP] Client IP

2004-07-07 Thread Rosen
Hi, How can I get remote IP adress of client? I use the fillow script:: $ip=getenv('HTTP_X_FORWARDED_FOR'); if (!$ip) { $ip = getenv('REMOTE_ADDR'); } But sometime it return me unknown sa IP adress. Can someone help me ? Thanks in advance! -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Client IP

2004-07-07 Thread Matthew Sims
Hi, How can I get remote IP adress of client? I use the fillow script:: $ip=getenv('HTTP_X_FORWARDED_FOR'); if (!$ip) { $ip = getenv('REMOTE_ADDR'); } But sometime it return me unknown sa IP adress. Can someone help me ? Thanks in advance! $_SERVER[REMOTE_ADDR] --Matthew Sims

Re: [PHP] Client IP

2004-07-07 Thread John W. Holmes
Matthew Sims wrote: Hi, How can I get remote IP adress of client? I use the fillow script:: $ip=getenv('HTTP_X_FORWARDED_FOR'); if (!$ip) { $ip = getenv('REMOTE_ADDR'); } But sometime it return me unknown sa IP adress. Can someone help me ? Thanks in advance! $_SERVER[REMOTE_ADDR] Either method

Re: [PHP] Client IP

2004-07-07 Thread Rosen
IP adress not send ?!? And how server communicate with client ? John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Matthew Sims wrote: Hi, How can I get remote IP adress of client? I use the fillow script:: $ip=getenv('HTTP_X_FORWARDED_FOR'); if (!$ip) { $ip =

Re: [PHP] Client IP

2004-07-07 Thread John W. Holmes
Rosen wrote: IP adress not send ?!? And how server communicate with client ? A variety of ways. What I meant is that it's not sent in the browser's headers that it sends to the site, which is where getenv() and $_SERVER[] would snatch it from. Do not rely on IP addresses. Trust me. -- ---John

Re: [PHP] Client IP

2004-07-07 Thread Rosen
:) Ok - then how linux server communicate with client - the server must have IP adress to whitch to send data. John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Rosen wrote: IP adress not send ?!? And how server communicate with client ? A variety of ways. What I

Re: [PHP] Client IP

2004-07-07 Thread Robert Sargant
I've used this function before a couple of times, but I haven't tested it fully. Give it a go if you want. /*** BEGIN CODE ***/ // Function get_ip function get_ip() { // List of possible ip sources, in order of priority $ip_sources = array ( HTTP_X_FORWARDED_FOR,

Re: [PHP] Client IP

2004-07-07 Thread Lars Torben Wilson
Rosen wrote: IP adress not send ?!? And how server communicate with client ? [snip] The httpd server might know the remote IP address, but that doesn't mean that it has to tell PHP about it. The SAPI module may or may not set the value, for instance. Even if you could rely on the IP address, in

Re: [PHP] Client IP

2004-07-07 Thread Rosen
Thanks, This for the users, thath come from one IP adress - I know about it, but, Can I get just adress of the IP, with which the server communicates ? Lars Torben Wilson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Rosen wrote: IP adress not send ?!? And how server communicate

Re: [PHP] Client IP

2004-07-07 Thread John W. Holmes
Rosen wrote: Can I get just adress of the IP, with which the server communicates ? If you don't see the IP address somewhere in the $_SERVER variable, then NO. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals

Re: [PHP] Client IP

2004-07-07 Thread Rosen
Ok, I don't understand why IP adress will bi invisible for $_SERVER variable. John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Rosen wrote: Can I get just adress of the IP, with which the server communicates ? If you don't see the IP address somewhere in the $_SERVER

RE: [PHP] Client IP

2004-07-07 Thread Michael Sims
John W. Holmes wrote: IP adress not send ?!? And how server communicate with client ? A variety of ways. What I meant is that it's not sent in the browser's headers that it sends to the site, which is where getenv() and $_SERVER[] would snatch it from. Correct me if I'm wrong, but shouldn't

Re: [PHP] Client IP

2004-07-07 Thread Jason Wong
On Thursday 08 July 2004 07:17, Rosen wrote: Ok - then how linux server communicate with client - the server must have IP adress to whitch to send data. Look some form of IP *will* be set and *will* be available in $_SERVER. What you was using in your original post has been deprecated

Re: [PHP] Client IP

2004-07-07 Thread Lars Torben Wilson
Rosen wrote: Ok, I don't understand why IP adress will bi invisible for $_SERVER variable. It should be there, but mostly because the CGI 1.1 spec requires that it be provided to the script. There is no physical requirement for it to be there. Reasons for it not being present could include: o

[PHP] Client IP address

2002-11-21 Thread Ron Smith
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,

Re: [PHP] Client IP address

2002-11-21 Thread Stephen
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

Re: [PHP] Client IP address

2002-11-21 Thread Chris Shiflett
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

Re: [PHP] Client IP address

2002-11-21 Thread Chris Shiflett
--- 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

Re: [PHP] Client IP address

2002-11-21 Thread Ernest E Vogelsinger
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

[PHP] client ip address

2001-11-27 Thread narko
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]

Re: [PHP] client ip address

2001-11-27 Thread mcsaba
$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