Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 23-01-03
frostie
Guest
 
Posts: n/a
  One more question - php & mysql


If I load my page up, then add some more details in my database, when I revisit the page it still shows the old data unless I force a refresh.

How do I get it to reload the page always - is there a meta tag I should use?

Thanks............again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 23-01-03
ShowYouLoveThem
Guest
 
Posts: n/a
  Re: One more question - php & mysql


It is most likely going to be just your internet explorer storing a copy of your page. Go to tools -> internet options -> Settings -> and change the option.

PHP pages arn't normally cached by other servers, (unless you work hard to do it) so this isn't nomally a problem unless you expect to update the data in real time (e.g. a shoping cart page).

you can do it by adding the following lines to the VERY START of your php files, but these will cause the browser to re-request the page at every view - i.e. even if they are just clicking the back button to get to the page.

<?
header("Cache-control: no-cache");
header("Expires: " . gmdate("D, d M Y H:i:s") . " GMT");
?>

(you may need to replace <? ?> with what ever php start and end flags you are using)

Again, I'd only do this in certain situations as it will cause more request to the site, therefore a slower browsing experience.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 23-01-03
here hare here
Guest
 
Posts: n/a
  Re: One more question - php & mysql


In later versions of IE, caching could also be because your clock is set wrong on your PC (no, I'm not joking). If it's not set right, it could override any IE settings you have and refuse to fetch the new page.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP redirect question drivetowin Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 1 31-12-04 04:44 PM
PHP question matbennett Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 1 19-11-04 07:13 PM
Anyone anygood with xml, php, mysql and Affiliate Window AnnonnyMouse The Affiliate Marketing Lounge 1 23-09-04 11:00 AM
PHP question......again :) uklejon Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 6 11-05-04 04:07 PM
PHP & MYSQL Affiliates4u Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 8 13-01-03 09:12 PM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7