PHP Classes

Fatal Error

Recommend this page to a friend!

      Debug - Log Writer  >  All threads  >  Fatal Error  >  (Un) Subscribe thread alerts  
Subject:Fatal Error
Summary:Debug - Log Writer
Messages:4
Author:Carlos Lara Orozco
Date:2009-09-03 15:36:59
Update:2009-09-07 14:29:49
 

 


  1. Fatal Error   Reply   Report abuse  
Picture of Carlos Lara Orozco Carlos Lara Orozco - 2009-09-03 15:36:59
I use the sample file and get an error:

Fatal error: Class 'ZipArchive' not found in C:\AppServ\www\log\Debug.class.php on line 29

Please, check....

Thanks!

PD.: The sample file requiere a 'DebugLog.class.php' and the name file is 'Debug.class.php'

PD2: I don't speak english ;-(


  2. Re: Fatal Error   Reply   Report abuse  
Picture of oran oran - 2009-09-03 22:08:20 - In reply to message 1 from Carlos Lara Orozco
Hi Carlos,

please Add "extension=php_zip.dll" in your php.ini
and zlib.output_compression = On

shuld work now


  3. Re: Fatal Error   Reply   Report abuse  
Picture of Carlos Lara Orozco Carlos Lara Orozco - 2009-09-07 14:09:26 - In reply to message 2 from oran
Yes... .it's working.... zipped files!!!

But.. In the same date, logs is deleted...

For example:

1. I login, save "User login: Carlos"
2. I Add a register, save "Carlos add reg"

Finally, the 2nd point deleted a 1st point.

You understand me??

  4. Re: Fatal Error   Reply   Report abuse  
Picture of oran oran - 2009-09-07 14:29:50 - In reply to message 3 from Carlos Lara Orozco
Hi

to write log just use
require_once 'DebugLog.class.php';

$debug = new DebugLog;
$debug->SetLogPath("/var/www/log/"); // dont forget / in the end


$debug->Debug("your events here");
it will create log with today date.txt
if he will see month before log files he will zip autumaticly



please explain better your problem