"; $html .= fread($fp, filesize($filename)); $html .= ""; fclose($fp); unlink($filename); $xml_reponse->addAppend("debug".$section, "innerHTML", $html); } $xml_reponse->script("window.setTimeout('phpfreechat_getnewlog(\'".$chatid."\',\'".$section."\')', 1000);"); return $xml_reponse->getXML(); } $xajax = new xajax("", "phpfreechat_"); //$xajax->debugOn(); $xajax->registerFunction("getnewlog"); $xajax->processRequests(); ?>