$name: $message";
$dfile = fopen($chatfile,"a");
fputs($dfile, $show . "
");
fclose($dfile);
$dir.="/external";
if (!file_exists($dir)) mkdir($dir);
@chmod($dir, 0755);
$dfile = fopen("uploads/$room/external/$day.html","a");
fputs($dfile, "\"" . time(). "\",\"" . $show . "\";;\r\n");
fclose($dfile);
}
//if (file_exists($chatfile)) echo implode('', file($chatfile));
?>
Loading chat history...