Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Output the file
- header("Content-type: text/plain");
- header("Content-Disposition: attachment; filename=".$myfile_name.".csv");
- header("Content-Length: ".@count($file_name) + 1);
- echo $csv_file;
Add Comment
Please, Sign In to add comment