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
https://forums.phpfreaks.com/topic/109390-solved-php-refreshing/
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.