$fh = fopen('/tmp/cookie-data','w') or die("can't open file");if (-1 == fwrite($fh,$_COOKIE['flavor'])) { die("can't write data"); }fclose($fh) or die("can't close file");?>