Re: ip address
| From: | Philip Thompson | Date: | Thu, 30 Sep 2004 13:46:19 +0000 |
| Subject: | Re: ip address | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-36480@lists.php.net to get a copy of this message | ||
Ramil,
On Sep 30, 2004, at 1:17 AM, Ramil Sagum wrote:
On Thu, 30 Sep 2004 11:00:35 +0530, balwantsingh <balwantsingh@indoasian.com> wrote:Yes, that's what I did (with a tad bit of error-testing), and it seems to work fine for me. ~Philipi tried the $_SERVER['REMOTE_ADDR'] it is giving ip address of server which is hosting the webpage not the user's ip address. pls. suggest how can IP address of an user can be obtained.what exactly did you do? the following script works: === <html><body> Your IP Address is : <?php echo $_SERVER["REMOTE_ADDR"]; ?> </body></html> === ---- ramil