function logIO($io,$msg) {}

logIO() – Writes logging info to a file.


  • 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);



	return true;



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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: