How to get the IP address of the visitor with PHP?

This Tutorial Has Been Viewed 973 Times.

This is a very simple script to get the IP address of your visitor using php

< ?php
   $ip = $_SERVER['REMOTE_ADDR'];
  echo "Your IP address is ".$ip;
?>
VN:F [1.9.13_1145]
Rating: 1.0/10 (1 vote cast)
VN:F [1.9.13_1145]
Rating: 0 (from 2 votes)

How to get the IP address of the visitor with PHP?, 1.0 out of 10 based on 1 rating

Incoming search terms:





You will also be interested in ,

Tags:

Leave a Reply

Spam protection by WP Captcha-Free

Proudly designed by Mistonline.in.
Affordable Seo PackagesSeo BlogEdu Backlinks
More in PHP (56 of 123 articles)


This tutorial require 1 PHP file and 1 table of mySQL database. 1. counter.php 2. Database "mypage" and table "counter" ...