How to get IP address of user in PHP

Jose
Written by Jose

Posted On: Jan 09, 2019

 

    1 Answer Written

  •  Jose
    Posted by David

    In your code simply use  $_SERVER['REMOTE_ADDR'] to get the IP address of the client or User.

Please Login or Register to leave a response.

Related Questions

PHP Interview Questions

What is mvc in PHP?

MVC stands for Model View Controller. It is an application design pattern for software development that separates the application data and business logic (model) from the presentation (view)....