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. 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. 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 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
Archived
This topic is now archived and is closed to further replies.