PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
  Classes of Ettore Moretti  >  PHP User Step Logs  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP User Step Logs
Record the pages a user accesses in a database
Author: By
Last change:
Date: 4 years ago
Size: 388 bytes
 

 

Contents

Class file image Download
<?php

/**
 * Add this code at the beginning of each page you want to check
 */

require_once 'core/UserStepLogs.class.php';

//Use your strategy to identify the user, register UID or IP or you believe anything useful to your interest
$UserId="XYZ0123";

$USL = new UserStepLogs($UserId,$_SERVER, $_POST);
   
/**
 * Add this code at the beginning of each page you want to check
 */