Location: PHPKode > projects > Modular Site Manager > htdocs/flush_logs.php
<?
include "inc/config.inc.php";
ob_start();
$open = opendir(SITE_PATH."logs") or die("Couldn't open directory");
while($read = readdir($open))
{
	if($read !== "." && $read !== "..")
	{
		echo "Cleaning log ".$read."<br>";
		ob_flush();
		unlink(SITE_PATH."logs/".$read) or die("Couldn't delete file ".$read);
	}
}
closedir();
?>
Return current item: Modular Site Manager