Visitor information - Php

Visitor information

Snippet Code


  
Rate this page :
  [ 0 votes]

This snippet displays information about a visitor to a web page.It also Shows IP address, referrer and browser type.

<?php <?php include "visitor_information.php"; ?> echo "<p>IP Address: " . $_SERVER['REMOTE_ADDR'] . "</p>"; echo "<p>Referrer: " . $_SERVER['HTTP_REFERER'] . "</p>"; echo "<p>Browser: " . $_SERVER['HTTP_USER_AGENT'] . "</p>"; ?>

Tags


Ask Questions

Ask Question