PHP Classes

File: exampleFootPrintInFile.php

Recommend this page to a friend!
  Classes of Peeyush Budhia   PHP Visitor Tracking Class   exampleFootPrintInFile.php   Download  
File: exampleFootPrintInFile.php
Role: Example script
Content type: text/plain
Description: Example to store information in log file.
Class: PHP Visitor Tracking Class
Track site visitors in files or a MySQL database
Author: By
Last change:
Date: 10 years ago
Size: 278 bytes
 

Contents

Class file image Download
<?php
require 'class.FootPrintsInFile.php';
/**
 * Class Object
 */
$File = new FootPrintsInFile('track.log');

/**
 * To store the visitor's information
 */
$File->storeInfo();

/**
 * To retrieve and print the stored info
 */
print nl2br($File->retrieveInfo());