Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Why Do I Have To Force A Refresh?


11 replies to this topic

#1 fsoftball

    Member [Level 2]

  • Kontributors
  • PipPipPipPipPip
  • 78 posts

Posted 29 April 2005 - 05:14 PM

This may or may not be PHP related; I am THAT much of a newbie.

It seems like I need to force my browser to NOT use a cahced view of pages I create using PHP. Is there any way I can make it sound refresh every time the page is loaded?

#2 lamode

    Member [Level 3]

  • Kontributors
  • PipPipPipPipPipPip
  • 96 posts

Posted 29 April 2005 - 06:23 PM

i dont quite sure what u mean, but you can try ctrl+f5. that hot key does the refresh page job in internet explorer.

#3 dodgerblue

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 270 posts
  • Location:10 inches from the computer screen
  • Interests:draughts. i open all the doors and windows in my house.

Posted 29 April 2005 - 07:43 PM

If you're using IE

Go to Tools > Internet Options.

Under the General tab (which should be the first tab you see), there is a section called Temporary Internet Files, with the description Pages you view on the Internet are stored in a special folder for quick viewing later.

Right under that there are three buttons. Delete Cookies, Delete Files and Settings.

Click on Settings.

A dialog box will pop up which says Check for newer versions of stored pages:

Select Every visit to the page (the first option).

Click OK for this dialog box, and Apply for the Internet Options window.

All set.


If you're using Firefox

Go to Tools > Options.

Under the Privacy tab (which is denoted by a yellow lock icon on the left sidebar), there is a list of options for which you can change the privacy settings.

The last option in this list says Cache. Click on the little + icon.

Where it says Use up to: [ box ] KB of disk space for the cache, change the number in the box to 0 (default is 50000 KB).

Click OK.

All set.

#4 leiaah

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 436 posts
  • Location:Koronadal City, Philippines
  • Interests:music, web stuff, movies, pop culture

Posted 29 April 2005 - 11:02 PM

I don't know if this is related but I'M LOOKING FOR A CODE THAT AUTOREFRESHES THE PAGE EVERY 2 MINUTES. I've created a thread for this last week but no one seemed to understand it. Does anyone know how? -_-

#5 SystemWisdom

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 117 posts
  • Location:A Canadian South of the 49th Parallel
  • Interests:Everything & Nothing Simultaneously!

Posted 03 May 2005 - 05:17 PM

You could use a META tag for that effect, it is part of the HTML standard so it is client-side code, and nearly all browsers recognize it.. It is not PHP related..

An example of the tag you need:

Example filename = index.html
<html>
<head>
<meta http-equiv="Refresh" content="120;URL=index.html">
</head>
<body>
blah blah blah..
</body>
</html>

That should work!

#6 fsoftball

    Member [Level 2]

  • Kontributors
  • PipPipPipPipPip
  • 78 posts

Posted 06 May 2005 - 05:18 AM

Thanks SystemWisdom.

Can you please explain what the code will actually do?

#7 Ao)K-General

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 523 posts

Posted 07 May 2005 - 06:19 PM

I tried a refresh code and it always took me from one page to the page I wanted to refresh. So I took it out and never used it again. Some times they don't work the way you want em to. And sometimes you just need to put it in the right file which I will not do. I don't wanna screw something up.

#8 mobious

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 113 posts
  • Location:Philippines

Posted 09 May 2005 - 08:06 AM

i think you are referring to your pages being cached by browsers rather than literally refreshing the page. add this to evry page to prevent browsers from cahing your php pages.

header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
or

header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");


#9 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 02 February 2008 - 10:08 AM

This site is very useful to me thanks a lot.


-reply by madhuri

#10 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 24 October 2008 - 08:49 AM

Replying to dodgerblue wow your the man... So so simple yet took me years to finaly look to fix this problem... Thanx this site rox the sox

-reply by 1Rando

#11 shadowx

    Live your life so that in death you may stand side by side with your gods. Not at their feet.

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1,674 posts
  • Gender:Male
  • Location:Essex, UK
  • Interests:Photography is a big interest, i have some photos up at my site, apex photographs (http://apex-photographs.com). Using my Lumix g1 to take the photos of course! <br /><br />Um computer games... photo editing and thats about it!
  • myCENT:36.41
  • Spam Patrol

Posted 01 November 2008 - 01:17 PM

Quote

Can you please explain what the code will actually do?

It will simply refresh the page "index.html" every 120 seconds (2 minutes)

If the page you put it on is "refresh.html" then you'd need to replace "index.html" with refresh.html

You then need to work out how many seconds you want to wait for a refresh, 60 per minute so 5 minutes = 300 seconds. 5 seconds obviously is just 5.

I gotta be honest, its the first time ive seen a code like this and i can think of several uses for it! Otherwise i wouldve used javascript which isnt thhe best option...

#12 Guest_help please_*

  • Guests

Posted 26 August 2011 - 01:59 AM

whats the process for google chrome? Thanks

View Postdodgerblue, on 29 April 2005 - 07:43 PM, said:

If you're using IE

Go to Tools > Internet Options.

Under the General tab (which should be the first tab you see), there is a section called Temporary Internet Files, with the description Pages you view on the Internet are stored in a special folder for quick viewing later.

Right under that there are three buttons. Delete Cookies, Delete Files and Settings.

Click on Settings.

A dialog box will pop up which says Check for newer versions of stored pages:

Select Every visit to the page (the first option).

Click OK for this dialog box, and Apply for the Internet Options window.

All set.


If you're using Firefox

Go to Tools > Options.

Under the Privacy tab (which is denoted by a yellow lock icon on the left sidebar), there is a list of options for which you can change the privacy settings.

The last option in this list says Cache. Click on the little <span style='font-size:14pt;line-height:100%'>+</span> icon.

Where it says Use up to: [ box ] KB of disk space for the cache, change the number in the box to 0 (default is 50000 KB).

Click OK.

All set.





Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users