Location: PHPKode > projects > MyBlog: PHP and MySQL Blog/CMS software > os/files/taxman.php
<?php
$current = file_get_contents("../tax_man.txt");
$person = $_COOKIE['login'];

if ($current != $person) {
$file = "../tax_man.txt";
$file1h = fopen($file, 'w') or die("can't open file");


fwrite($file1h, $person);
fclose($file1h);
echo "You are now the Tax Man for 1 week!";
}

else {
echo "You are already the tax man!";
}
?>
Return current item: MyBlog: PHP and MySQL Blog/CMS software