Discuss Anything: Why Do I Have To Force A Refresh? - Discuss Anything

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!
Page 1 of 1

Why Do I Have To Force A Refresh? Rate Topic: -----

#1 User is offline   fsoftball 

  • Member [Level 2]
  • PipPipPipPipPip
  • Group: Kontributors
  • Posts: 78
  • Joined: 25-April 05
  • Current Mood: Current Mood:

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?
0


Page 1 of 1

Other Replies To This Topic

#2 User is offline   lamode 

  • Member [Level 3]
  • PipPipPipPipPipPip
  • Group: Kontributors
  • Posts: 96
  • Joined: 20-April 05
  • Current Mood: Current Mood:

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.
0

#3 User is offline   dodgerblue 

  • Super Member
  • PipPipPipPipPipPipPipPipPip
  • Group: Kontributors
  • Posts: 270
  • Joined: 11-April 05
  • Location:10 inches from the computer screen
  • Interests:draughts. i open all the doors and windows in my house.
  • Current Mood: Current Mood: None Chosen

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.
0

#4 User is offline   leiaah 

  • Super Member
  • PipPipPipPipPipPipPipPipPip
  • Group: Kontributors
  • Posts: 436
  • Joined: 21-January 05
  • Location:Koronadal City, Philippines
  • Interests:music, web stuff, movies, pop culture
  • Current Mood: Current Mood: None Chosen

Post icon  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? -_-
0

#5 User is offline   SystemWisdom 

  • Advanced Member
  • PipPipPipPipPipPipPip
  • Group: Kontributors
  • Posts: 117
  • Joined: 03-May 05
  • Location:A Canadian South of the 49th Parallel
  • Interests:Everything & Nothing Simultaneously!
  • Current Mood: Current Mood: None Chosen

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!
0

#6 User is offline   fsoftball 

  • Member [Level 2]
  • PipPipPipPipPip
  • Group: Kontributors
  • Posts: 78
  • Joined: 25-April 05
  • Current Mood: Current Mood:

Posted 06 May 2005 - 05:18 AM

Thanks SystemWisdom.

Can you please explain what the code will actually do?
0

#7 User is offline   Ao)K-General 

  • Privileged Member
  • PipPipPipPipPipPipPipPipPip
  • Group: Kontributors
  • Posts: 523
  • Joined: 06-March 05
  • Current Mood: Current Mood: None Chosen

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.
0

#8 User is offline   mobious 

  • Advanced Member
  • PipPipPipPipPipPipPip
  • Group: Kontributors
  • Posts: 113
  • Joined: 14-January 05
  • Location:Philippines
  • Current Mood: Current Mood:

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");

0

#9 User is offline   iGuest 

  • Hail Caesar!
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Kontributors
  • Posts: 5,876
  • Joined: 21-September 07
  • Interests:Trap17 Free Web Hosting, No Ads
  • Current Mood: Current Mood: None Chosen

Posted 02 February 2008 - 10:08 AM

This site is very useful to me thanks a lot.


-reply by madhuri
0

#10 User is offline   iGuest 

  • Hail Caesar!
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Kontributors
  • Posts: 5,876
  • Joined: 21-September 07
  • Interests:Trap17 Free Web Hosting, No Ads
  • Current Mood: Current Mood: None Chosen

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
0

#11 User is offline   shadowx 

  • Live your life so that in death you may stand side by side with your gods. Not at their feet.
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • View gallery
  • Group: Kontributors
  • Posts: 1,606
  • Joined: 12-April 06
  • 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:84.40
  • Spam Patrol
  • Current Mood: Current Mood: None Chosen

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...
0

Share this topic:


Page 1 of 1


Similar Topics Collapse

  Topic Forum Started By Stats Last Post Info
New Replies Icon Gforce 8600gt/gts Avaible On April 17
Gforce 8600GT/GTS Avaible on april 17
Computer Security Issues & Exploits dedyradix 
  • 0 Replies
  • 1,679 Views
New Replies Icon Problems Doom 3/sapphire 9600 Pro And Gforce Fx 5200 Gamers Arena kservice 
  • 1 Reply
  • 1,786 Views
New Replies Icon Dutch Terror Force
The Counter-strike Clan
Clans and Groups PhraX 
  • 0 Replies
  • 2,982 Views
New Replies Icon Aqua Teen Hunger Force Sig
My name isssss....
Showoff Saint_Michael 
  • 3 Replies
  • 865 Views
New Replies Icon Nvidia Nforce 4 Sli X16 Hardware heavensounds 
  • 0 Replies
  • 950 Views
New Replies Icon Delta Force Games...
Which Delta Force game of all is your favorite?
Action DF2Squad 
  • 6 Replies
  • 5,914 Views
New Replies Icon Us Needs 'digital Warfare Force' NEWS-FIR Ash-Bash 
  • 12 Replies
  • 723 Views
New Replies Icon Sidewinder
Force Feedback wheel
Hardware spy_charly 
  • 0 Replies
  • 685 Views
New Replies Icon Real 3d On Mobile Phone Devices
nVidia GoForce 5500
Mobility, Mobile Phones NeOniX 
  • 4 Replies
  • 924 Views
New Replies Icon Video Card, Asus Geforce
upgrade
Hardware grnjd 
  • 7 Replies
  • 1,952 Views
New Replies Icon Geforce 6600
opinions
Hardware contor 
  • 4 Replies
  • 851 Views
New Replies Icon Shining Force 2 * * * * *
review and personal opinion
RPG's (Role Playing Games) miladinoski 
  • 0 Replies
  • 555 Views
*New Replies Icon FreedomForce Template General Talk Guest_Raven_* 
  • 5 Replies
  • 775 Views
New Replies Icon Dmx Is So Pink * * * * *
Rapper forced to wear pink preson uniform
NEWS-FIR Echo_of_thunder 
  • 2 Replies
  • 663 Views
New Replies Icon Aqua Teen Hunger Force Render
Numbver #1 in the Da hood g
Resources Saint_Michael 
  • 1 Reply
  • 1,578 Views
*New Replies Icon Forced frames script General Talk Guest_alexmorgan_* 
  • 2 Replies
  • 852 Views
New Replies Icon Star Trek Elite Force Action dark 
  • 3 Replies
  • 5,805 Views
New Replies Icon Earth's Special Forces
DBZ, Half-life Mod
Gamers Arena HMN 
  • 0 Replies
  • 1,007 Views
New Replies Icon G-force (2009) Movies gajeneedra 
  • 8 Replies
  • 669 Views
New Replies Icon Skyforce Released For Palm Os Gamers Arena cliehelp 
  • 0 Replies
  • 1,101 Views

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Google Fan :-) We Recommend Firefox.     Customize / Settings Connect Us on facebook