Jump to content

[SOLVED] PHP Refreshing


valtido

Recommended Posts

Hi i know you can do this on ASP but not sure if you can do it on php.

 

is there away that when someone visits a page it will force the browser to load the datafrom the server.

 

sometimes if you update a page old data is displayed, which is not any help :(

 

im finding it hard to explain but lets say if a picture is on blabla.php if i visit that page for the second time it will not reload a new image would be the same. is there a code that it will prompt to syncronise if that picture is different?

 

if you dont understand what im going on about then pls ask

Link to comment
Share on other sites

This is one of my favorite little scripts that I include on any page that I want to make sure isn't loaded from the cache of a user's browser.  It came from member vasah20 a while back, and it has been requested so many times, I just decided to put it here.

 

So thanks to vasah20, and without further ado...

 

<%

Response.Expires = 15

Response.ExpiresAbsolute = Now() - 2

Response.AddHeader "pragma","no-cache"

Response.AddHeader "cache-control","private"

Response.CacheControl = "private"

%>

 

i think this is an example of asp

 

is it posible on php?

 

http://www.tek-tips.com/faqs.cfm?fid=1034

full description

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.