Definition:
function logIO($io,$msg) {}
logIO() – Writes logging info to a file.
Parameters
- string $io: Whether input or output
- string $msg: Information describing logging reason.
Return values
returns:Always return true
Source code
function logIO($io,$msg) {
global $xmlrpc_logging;
if ($xmlrpc_logging) {
$fp = fopen("../xmlrpc.log","a+");
$date = gmdate("Y-m-d H:i:s ");
$iot = ($io == "I") ? " Input: " : " Output: ";
fwrite($fp, "\n\n".$date.$iot.$msg);
fclose($fp);
}
return true;
}
2301

February 12, 2011 


No comments yet... Be the first to leave a reply!