Getting a clients IP w/ PHP

They have: 141 posts

Joined: Aug 1999

Is there a way to get a clients IP using a PHP command? I have tried using getheaders but I don't think that returns the client's IP.

If anyone knows anything about this, I would appriciate it, thanks.

------------------
Visit the dLo.Network
http://dlo.net

They have: 5,633 posts

Joined: Jan 1970

getenv(REMOTE_ADDR);

------------------
TWF Administrator

Looking for Web Hosting Services?
Dynamic Internet Solutions : http://www.dids.com
Windows NT and UNIX Hosting ($9.95 - $399.95), Dedicated Servers, and Co-Location Programs

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.