Please post some code. It is very hard to guess what your problem could be without seeing how you've written the script.
cLive ;-) | [reply] |
(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
| [reply] |
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 ;-)
| [reply] |
From what you have said it appears,that you have messed up with the code that's supposed to write to the buffer. please do post the code so that the error may be precisely pointed out. In case you donot want to share the exact variables/ inputs .... , replace them with dummy data.
Anandatirtha
| [reply] |