Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 06-11-2005, 10:51 AM cached pages
Average Talker

Posts: 15
Trades: 0
I am writing a PHP/mySQL based weblog at current.

Having just made an 'edit your entry' form which loads the entry with PHP and sets the default value of each text field in the form on the page to the value of the corrasponding field in the entry database, therefore the user can edit this, and when submitted, the database is updated. As the browser is caching the page, sometimes it takes multiple refreshes to get updates to register. This does not bother me on the main page, but on editing page, it can sometimes mean that the entry I am editing does not start off identical to the state of the entry at present, which can cause problems. What I need to know is: is there a way of telling the browser NOT to cache a page, and to ALWAYS load it from the server?
bennyboywonder is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-11-2005, 12:55 PM
Monkeon's Avatar
Skilled Talker

Posts: 59
Trades: 0
Ahh dunno what browser you're using, but if it's IE I think it's under

TOOLS > INTERNET OPTIONS > Temporary Internet Files > SETTINGS

You want to set it to check for newer versions of the page with every visit.

.... I think
__________________

Please login or register to view this content. Registration is FREE
FREE Online Dating!
Meet your perfect match online right now!
Monkeon is offline
Reply With Quote
View Public Profile
 
Old 06-11-2005, 03:02 PM
Average Talker

Posts: 15
Trades: 0
I beg your pardon, I mean can it be specified via PHP or HTML or suchlike?
bennyboywonder is offline
Reply With Quote
View Public Profile
 
Old 06-11-2005, 03:22 PM
Monkeon's Avatar
Skilled Talker

Posts: 59
Trades: 0
Ahhhhhh.

In that case, check this out

http://www.htmlgoodies.com/beyond/re...le.php/3472881
__________________

Please login or register to view this content. Registration is FREE
FREE Online Dating!
Meet your perfect match online right now!
Monkeon is offline
Reply With Quote
View Public Profile
 
Old 06-11-2005, 04:51 PM
Average Talker

Posts: 15
Trades: 0
fab works like a dream. Thanks very much
bennyboywonder is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to cached pages
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14979 seconds with 12 queries