in reply to download problem

Please post some code. It is very hard to guess what your problem could be without seeing how you've written the script.

cLive ;-)

Replies are listed 'Best First'.
Re: Re: download problem
by darshan_atha (Acolyte) on Nov 12, 2002 at 09:38 UTC
    (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
      Please use <code>...</code> tags around your code sample when posting - it makes it a lot easier to read!

      And once again, there is no point showing only one line of code. Just because this is where you think the problem is, it doesn't mean that it is there.

      it might also be useful to see an example of data that prints OK, and data that fails, if you can provide them (or link to them on another server if they are quite large.

      cLive ;-)