Re: Doubt in PHP

From: Date: Mon, 05 Jun 2000 12:55:13 +0000
Subject: Re: Doubt in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-1034@lists.php.net to get a copy of this message
If you're getting localhost as the remote address, it sounds like you're running the web browser on the web server... try 'phpinfo();' to see what the SERVER_ADDR is... otherwise, that seems freakish to me... As far as 'do we have a function to do that', please try to read the manual... http://www.php.net/manual/ref.network.php -r3- ----- Original Message ----- From: Treasure Solutions <treasuresolutions@usa.net> To: <php-general@lists.php.net> Sent: Monday, June 05, 2000 5:55 AM Subject: [PHP-GENERAL] Doubt in PHP Sir/Madam, We are working in PHP and we do not know how to obtain the IP address of the client system from the server. When we give the command echo REMOTE_ADDR; we get only the IP address of the local host which is 127.0.0.1. But if we want to get the actual IP address of the client how do we do that? Please do clear our doubts. If we know the system name how can we obtain the IP address using the name of the system. Do we have any specific function to obtain that. Please do reply. Thanking you in advance, Regards, Sujatha. Software Programmer - Treasure solutions software. ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#1034) next »