Skip to forum content
Code The World
We are a group of graphic designers and web developers trying to create a social network for the people, and not for the commercialization of said social network.
You are not logged in. Please login or register.
Pages 1
You must login or register to post a reply
- Registered: 2007-11-19
- Posts: 12
Topic: Visitor information
Description
Displays information about a visitor to a web page. Shows IP address, referrer and browser type.
The code
<?php
/**
* Add this line of code in your page:
* <?php include "visitor_information.php"; ?>
*/
// Display IP address
echo "<p>IP Address: " . $_SERVER['REMOTE_ADDR'] . "</p>";
// Display the referrer
echo "<p>Referrer: " . $_SERVER['HTTP_REFERER'] . "</p>";
// Display browser type
echo "<p>Browser: " . $_SERVER['HTTP_USER_AGENT'] . "</p>";
?>
Posts: 1
Pages 1
You must login or register to post a reply
Powered by PunBB, supported by Informer Technologies, Inc.
Currently used extensions: pun_admin_manage_extensions_improved, pun_poll, pun_quote, pun_bbcode, pun_repository, pun_tags, pun_admin_add_user, google_analytics, pun_eggdrop, pun_recaptcha.
Copyright © 2007 - 2025 CodeTheWorld