in reply to Re: download problem
in thread download problem

(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

Replies are listed 'Best First'.
Re: download problem
by cLive ;-) (Prior) on Nov 12, 2002 at 21:56 UTC
    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 ;-)