Login   Register  
PHP Classes
elePHPant
Icontem

File: ClassTestFile/testLOGManager.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Guerrieri Luca  >  PXAServer  >  ClassTestFile/testLOGManager.php  >  Download  
File: ClassTestFile/testLOGManager.php
Role: Example script
Content type: text/plain
Description: Test for LOGManager Class
Class: PXAServer
Library to build applications configured with XML
Author: By
Last change:
Date: 7 years ago
Size: 627 bytes
 

Contents

Class file image Download
<?php
/*
 * File di test per la classe LOGManager
 */

require ('../libreria/global.inc.php');

$ftest=new LOGmanager;
//crea un file di log
$ftest->make_log_file("testo.log");
//scrive il file di log
echo $ftest->write_log_file("testo.log","data username ip azione altro altroooo");
//legge il file di log
$ftest ->read_log_file("testo.log");
//esegue il back-up di tipo standard (zippa e mette nella directori backup)
$ftest->backup_log_file("testo.log","standard");
//esegue il back-up di tipo delete (zippa ,sposta in backup e cancella il file di log  )
$ftest->backup_log_file("testo.log","delete");
?>