how do delete all of the user's 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
Betty_S
Forum Newbie
Posts: 20
Joined: Tue Dec 05, 2006 3:40 am

how do delete all of the user's Temporary Internet Files?

Post by Betty_S »

how do delete all of the user's Temporary Internet Files?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You don't. It's not possible unless you find a hole in the security, in which case you may find yourself visited by scary men in suits who carry guns.
User avatar
andym01480
Forum Contributor
Posts: 390
Joined: Wed Apr 19, 2006 5:01 pm

Post by andym01480 »

You can't! PHP operates on the server and sends html to the browser. You could write a virus, but that would be immoral and illegal!

If the reason why you are asking is that a user's browser brings up an old version of a page rather than a new one - you can force a fresh page by setting the headers to no-cache. Internet Explorer is a bit buggy on how it responds.

something like

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
<META HTTP-EQUIV="Expires" CONTENT="-1"> 
</head>
<body onLoad="if ('Navigator' == navigator.appName) document.forms[0].reset();" >
at the top and

Code: Select all

</body>
<HEAD>


<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

</HEAD>
</html>
which before anyone points out will not validate! But it will work!
http://support.microsoft.com/kb/222064 is microsoft's solution
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

andym01480 wrote:

Code: Select all

</body>
<HEAD>


<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

</HEAD>
</html>
which before anyone points out will not validate! But it will work!
http://support.microsoft.com/kb/222064 is microsoft's solution
Nope. But this will validate:

Code: Select all

</body>
<!--[if IE]>
<HEAD>


<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

</HEAD>
<![endif]-->
</html>
:)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

You can also set the response headers in the PHP Code.
Dale
Forum Contributor
Posts: 466
Joined: Fri Jun 21, 2002 5:57 pm
Location: Atherstone, Warks

Post by Dale »

If you was running a local server (eg; AppServ) on your computer, you could remove YOUR Temp Int Files but no one elses.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Dale wrote:If you was running a local server (eg; AppServ) on your computer, you could remove YOUR Temp Int Files but no one elses.
Provided the server is logged in as "you." :)
Post Reply