File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes PHP and the fly likes Get ip by php Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » PHP
Bookmark "Get ip by php" Watch "Get ip by php" New topic

Get ip by php

Vu Van Bac

Joined: Apr 26, 2014
Posts: 1
What is get ip function in php?

Nick Charles
Ranch Hand

Joined: Oct 09, 2011
Posts: 71

Vu, welcome to Java Ranch!

I assume you want to find out the IP address of the client, that is:

You can see all the values provided by $_SERVER in the docs:
I agree. Here's the link:
subject: Get ip by php
It's not a secret anymore!