On Tue, 2 May 2006, postmaster - networkoftheapes.net wrote:
I've created a log archival and analysis tool for XMail. Those that are
interested can check it out at http://xmlogarch.sourceforge.net
It's currently a beta release as I have a tiny bit more to go before decent
Win32 support.
You are brave! It looks like either PHP_EOL isn't being set or I've got
another variable with a null value in there somewhere. Try adding this line
to the very top of xmlogarch.php after the license comment;
define( PHP_EOL, \\n );
Apparently, PHP_EOL is Available since PHP 4.3.10 and PHP
Ok Bryn,
I added define( PHP_EOL, \\n ); as suggested to the 2nd line of
xmlogarch.php, and now I get this.
D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f xmlogarch.php -- -?
** UNKNOWN ERROR '' - TERMINATING (exit 255) ** Text: 'NULL'\n
Seems like you need a little section of code for
Thanks for testing. I think I see where I may have made a mistake and will
release a fix tongiht as I don't have the chance right now. For now, you
can just comment out line #245 in xmlogarch.php which should read something
like mex( ); Leave the if statement intact. It looks like I'm
I've started doing some Win32 testing ont my XP workstation as all I need
really are the logs and PHP - not installed XMail. So I have a question
because I don't remember: Under Win32, do log lines have LF or CR-LF
format? My test logs are still *nix logs so they are LF.
Thanks,
Bryn
-
Sweet, but for now, I'll let you know where I got to.
I commented the mex( );
I changed the INI from register_argc_argv=Off to register_argc_argv=On
I added a debugging line to the top, so my first 5 lines on xmlogarch.php is
now.
--
?php
define( PHP_EOL, \\n ); # Needed before 4.3.10