what's wrong with this code? it works fine except when i download the file there's nothing in the file and i've tried removing the unlink.
$F = fopen("filename","w");
fwrite($F,"blah");
fclose($F);
header('Content-Disposition: attachment; filename=title');
unlink("filename");