Skip to content

Getting The Client Information (Client's IP Address,Operating System,Browser Name,Device Type) in PHP

Notifications You must be signed in to change notification settings

aminelch/user_info

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

User's Information

Getting The Client Information (Client's IP Address,Operating System,Browser Name,Device Type) in PHP

Initialize

include('user_info.php');
//Or Use Require function
require('user_info.php');
$c_info = new Users_info;

Methods

c_ip()

If you want to get the client IP Address, Use this Method, This Method will return Client IP Address

Example

require('user_info.php');
$c_info = new Users_info;
echo $c_info->c_ip();

c_OS()

If you want to get the client Operating System Name, Use this Method, This Method will return Client Operating System

Example

require('user_info.php');
$c_info = new Users_info;
echo $c_info->c_OS();

c_Browser()

If you want to get the client's Browser Name, Use this Method, This Method will return Client's Browser Name

Example

require('user_info.php');
$c_info = new Users_info;
echo $c_info->c_Browser();

c_Device()

If you want to get the client's Device Type Then Use this Method, This Method will return Client's Device Type Name Such as Mobile,Tablet,Computer

Example

require('user_info.php');
$c_info = new Users_info;
echo $c_info->c_Device();

About

Getting The Client Information (Client's IP Address,Operating System,Browser Name,Device Type) in PHP

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%