Forum Moderators: coopster
I have one problem, I need to download many files(more then one file, but not in compressed mode) from the server, i'm using header() function for that:
header('Content-Type: application/octet-stream;');
header('Content-Disposition: attachment; '.'filename="1.txt"');
readfile("1.txt");
header('Content-Type: application/octet-stream;',false);
header('Content-Disposition: attachment; '.'filename="2.txt"',false);
readfile("2.txt");
,but i receive one download dialogue box(not two) which ask me to save '1.txt' file and content of this file is data from both files(1.txt,2.txt), so i can download one file '1.txt' which contains mixed data from both files;
BUT I NEED RECEIVE TWO DOWNLOAD DIALOGUE BOX - FIRST FOR 1.txt AND SECOND FOR 2.txt.
is it possible?
please, help me enyone....
Thank You