PHP Code:
if(file_exists("checkday.ini"))
{
$homepage = file_get_contents('checkday.ini');
if ($homepage!=date("d.m.y"))
{
//$lenhxoatable="DROP TABLE ".$table_luutru;
//mysql_query($lenhxoatable) or die(mysql_error());
unlink("checkday.ini");
}
}
else
{
$myFile = "checkday.ini";
$fh = fopen($myFile, 'w') or die("Khong The Ghi File");
fwrite($fh, date("d.m.y"));
fclose($fh);
}
[/quote]
Bài viết cùng chủ đề: