[xmail] Re: XMail Log Archiver

2006-05-03 Thread Rob Arends
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 -d -f xmlogarch.php -- -? Content-type: text/html

[xmail] Re: XMail Log Archiver

2006-05-03 Thread postmaster - networkoftheapes.net
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 - Or

[xmail] Re: XMail Log Archiver

2006-05-03 Thread postmaster - networkoftheapes.net
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

[xmail] Re: XMail Log Archiver

2006-05-03 Thread Rob Arends
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.3rc1>php -f xmlogarch.php -- -? ** UNKNOWN ERROR '' - TERMINATING (exit 255) ** Text: 'NULL'\n Seems like you need a little section of code f

[xmail] Re: XMail Log Archiver

2006-05-03 Thread postmaster - networkoftheapes.net
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