Hello,
I'm back yet again. I'm making a backup script to back up a users content that's in mysql, here's what I have:
if ($submit)
{
//mysql_queries
header("Content-Type: application/octet-stream\n");
header("Content-Disposition: attachment; filename=\"$name.txt\"");
echo "$content";
}
It works fine but it firsts askes me to download backup.php (the file name of the code above) and then to download the actual file with the backed-up info.
How can I fix this?
Thanks,
Justin Sampson