OK...looks like the problem is in the $day parameter. If I remove $day, the uptime.kix runs fine, but then I get a rather non-useful HTML page like this:

Server Uptime
DBTX: days
FSTX: days
EXCHANGETX: days