Login   Register  
PHP Classes
elePHPant
Icontem

File: exampleFootPrintInFile.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2014-01-07 05:36
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());