项目作者: marufhasan1

项目描述 :
Getting The Client Information (Client's IP Address,Operating System,Browser Name,Device Type) in PHP
高级语言: PHP
项目地址: git://github.com/marufhasan1/user_info.git
创建时间: 2017-03-05T06:53:17Z
项目社区:https://github.com/marufhasan1/user_info

开源协议:

下载


GitHub version

User’s Information

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

Initialize

  1. include('UserInfo.php');
  2. //Or Use Require function
  3. require('UserInfo.php');

Methods

get_ip()

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

Example

  1. require('user_info.php');
  2. echo UserInfo::get_ip()

get_OS()

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

Example

  1. require('user_info.php');
  2. echo UserInfo::get_os();

get_Browser()

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

Example

  1. require('user_info.php');
  2. echo UserInfo::get_browser();

get_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

  1. require('user_info.php');
  2. echo UserInfo::get_device();