PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of adam berger   error logi   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: error logi
Log error messages to file or send by email
Author: By
Last change: php
Date: 5 years ago
Size: 535 bytes
 

Contents

Class file image Download
<?php
 
include("error-logi.class.php");

  
$logi = new error_logi($_SERVER);
  
  
$mesage='B&#322;&#261;d log przypisujemy np. b&#322;&#261;d pdo lub mysql albo b&#322;&#261;d logowania';
     
$user='Adam ';
     
$html=true;
  
  
## ustawiamy kiedy zapisujey logi uzytkownika ##
     
$logi->user_logi_save($mesage,$user);
     
$logi->user_logi_email($mesage, $user, $html);

  
## ustawiamy kiedy zapisujey logi globalne ##
      
$logi->global_logi_save($mesage);
      
$logi->global_logi_email($mesage, $html);