process(); break; case 'history': // echo $_POST['log']; $ajax = new AjaxCall($_POST['log']); $ajax->process(); break; default: exit; } else include 'example.html'; function errorOccurred($num, $str, $file, $line) { $err = array ( 'yError' => "$str. \n File: $file \n Line: $line" ); if (function_exists('jsonEncode')) echo jsonEncode($err); else echo $err['yError']; exit; } ?>