ask9 Posted March 25, 2010 Share Posted March 25, 2010 Hello guys. I have this php script that will read records from mysql table and save it into text file (.CSV). Now i created a download link to that text file so a user can download that and then he can use and open it in the MS excel or openoffice. The problem is everytime my script auto updates the .CSV content and when i download the file using the 'download link' that i created, the content stay the same. Can you guys advice how to fix this problem, i checked my script and database and tested it and they worked very fine i noticed it's the browser that is causing the problem. Any good advice or suggestion you can give. Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/196476-browser-dont-recognize-the-new-updated-text-file-for-download/ Share on other sites More sharing options...
ask9 Posted March 25, 2010 Author Share Posted March 25, 2010 By the way the file extension is .ZIP to force the file download. After a user can download it, he can renamed it back into .csv. Quote Link to comment https://forums.phpfreaks.com/topic/196476-browser-dont-recognize-the-new-updated-text-file-for-download/#findComment-1031600 Share on other sites More sharing options...
oni-kun Posted March 25, 2010 Share Posted March 25, 2010 Make caching private for Internet Explorer, and disable it for all other browsers via header Quote Link to comment https://forums.phpfreaks.com/topic/196476-browser-dont-recognize-the-new-updated-text-file-for-download/#findComment-1031601 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.