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( 9999 );" Leave the if statement intact. It looks like I'm 
returning a FALSE somewhere where I shouldn't. It's odd that newer versions 
of PHP aren't complaining if I did make the mistake.

There is an odd chance that $_SERVER['argv'] might not be getting populated, 
so double check register_argc_argv in your php.ini as well. It should be 
true or 1 for CLI mode stuff to work. I don't think it populated CLI stuff 
automatically until after 4.3. Another way to check is to try passing the 
--noreports option which will only verify that the script can run. if it 
works, argv is populated for sure.

Bryn

----- Original Message -----
From: "Rob Arends" <[EMAIL PROTECTED]>
To: "'postmaster - networkoftheapes.net'" <[EMAIL PROTECTED]>
Cc: <xmail@xmailserver.org>
Date: Thu, 4 May 2006 09:27:40 +1000
Subject: [xmail] Re: XMail Log Archiver

> 
> 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 '9999' -  TERMINATING (exit 255) ** Text: 'NULL'\n
> 
> Seems like you need a little section of code for "older PHP", a bit like
> what we see for PHP in a webserver, where some HTTP variables did not exist
> before 4.0.3
> 
> Rob:-)
> 
> -----Original Message-----
> From: postmaster - networkoftheapes.net
> [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, 4 May 2006 4:44 AM
> To: Rob Arends
> Cc: xmail@xmailserver.org
> Subject: RE: [xmail] XMail Log Archiver
> 
> 
> 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 5.0.2". If you're
> okay after that or not, let me know. 
> 
> I tried to keep to as many PHP generated constants as I could (like
> DIRECTORY_SEPARATOR) to inclease portability (or so I hoped).
> 
> Thanks again for the bravery! It does help! It'll get fixed _and_ it looks
> like my error text is printing right :P Bryn
> 
> ----- Original Message -----
> From: "Rob Arends" <[EMAIL PROTECTED]>
> To: "'postmaster - networkoftheapes.net'" <[EMAIL PROTECTED]>
> Date: Wed, 3 May 2006 23:42:25 +1000
> Subject: RE: [xmail] XMail Log Archiver
> 
> > Hmmm, ok, I know I'm pushing the boundaries here a bit....
> > 
> > I have tried this on w2k/php 4.3.0
> > 
> > C:\PHP -v
> > PHP 4.3.0 (cgi-fcgi), Copyright (c) 1997-2002 The PHP Group Zend 
> > Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies
> > 
> > And I get:
> > D:\usrbin\xmailutils\xmlogarch-0.3rc1>php -f ./xmlogarch.php
> > ** UNKNOWN ERROR '9999' -  TERMINATING (exit 255) ** Text: 
> > 'NULL'PHP_EOL
> > 
> > .... History.
> > I expanded the zip to: D:\usrbin\xmailutils\xmlogarch-0.3rc1
> > This is my current folder.
> > I edited xmlogarch.php & xmlogarch_conf.php only, and they are 
> > attached for reference.
> > 
> > I restrained my editing to:
> > $installLocation = "d:/usrbin/xmailutils/xmlogarch-0.3rc1";
> > Also tried
> > $installLocation = "d:\\usrbin\\xmailutils\\xmlogarch-0.3rc1";
> > 
> > And various settings in the *_conf file.
> > 
> > I tried unix format paths and windows escaped and non-escaped "\" path 
> > delimiters.
> > I tried running as:
> > D:\usrbin\xmailutils\xmlogarch-0.3rc1>php -f ./xmlogarch.php 
> > D:\usrbin\xmailutils\xmlogarch-0.3rc1>php -f ./xmlogarch.php -?
> > D:\usrbin\xmailutils\xmlogarch-0.3rc1>php -f xmlogarch.php -gp -p 
> > password
> > 
> > All gave same error.
> > 
> > Hope this helps in the building effort.
> > 
> > Rob :-)
> > 
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] On Behalf Of postmaster - 
> > networkoftheapes.net
> > Sent: Wednesday, 3 May 2006 2:00 PM
> > To: xmail@xmailserver.org
> > Subject: [xmail] XMail Log Archiver
> > 
> > 
> > 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. I'll be working on it as I have the chance, but 
> > volunteers are also welcome.
> > 
> > (for the curious, yes this is how I discovered the 'friend' client 
> > domain problem I was having)
> > 
> > Enjoy,
> > Bryn
> > -
> > To unsubscribe from this list: send the line "unsubscribe xmail" in 
> > the body of a message to [EMAIL PROTECTED] For general help: 
> > send the line "help" in the body of a message to 
> > [EMAIL PROTECTED]
> > 
> > 
> > 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe xmail" in
> the body of a message to [EMAIL PROTECTED]
> For general help: send the line "help" in the body of a message to
> [EMAIL PROTECTED]
> 
> 
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to