File loads from Temporary Internet Files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
bluesman333
Forum Commoner
Posts: 52
Joined: Wed Dec 31, 2003 9:47 am

File loads from Temporary Internet Files

Post by bluesman333 »

Users are downloading a list of our products on a daily basis, sometimes multiple times a day. It looks like the file they are presented with is from Temporary Internet Files rather than the file that is on the server.

$file = 'Product_List'.date("Y_m_d_Gis").'.xls';
header('Content-type: application/msexcel');
header('Content-Disposition: attachment; filename='."$file");
readfile("excel_sheet/Product_List.xls");

Any suggestions?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

no-cache, private, blah blah..


This is not a General thread...


Moved to PHP - Code.
Post Reply