PHP Classes

File: Log.php

Recommend this page to a friend!
  Classes of Naveen valecha   Files Mover   Log.php   Download  
File: Log.php
Role: Class source
Content type: text/plain
Description: Log.php
Class: Files Mover
Copy or move files between directories
Author: By
Last change:
Date: 10 years ago
Size: 314 bytes
 

Contents

Class file image Download
<?php

/**
 * The class is use to maintain the logs in the log file
 * @author Naveen Valecha<valecha29@gmail.com>
 */

class Log {

  protected
$file = 'log.txt';

  public function
write($data) {

   
$file = fopen($this->file, 'a+');
   
fputs($file, "\r\n");
   
fputs($file, $data);
   
fclose($file);
  }

}