(print "Content-Type: application/x-unknown\n";
print "Content-Disposition: attachment; filename=\"file.txt\" \n\n";)
i am using these features when someone click on download
i dont print content/type ->text or html instead i print the above code and after that i query the database and fetch the record and print it in while loop of using fetchrow_array till the record ends
in that case when the records r less the code is working fine but in case of large records it ask me to save the file but the file i save contains 0 byte.
thanx