ShaolinF Posted July 9, 2007 Share Posted July 9, 2007 Hi Guys, Is there any way I can force my php scripts to reload everytime they are used ? Link to comment https://forums.phpfreaks.com/topic/59168-solved-force-reload/ Share on other sites More sharing options...
Yesideez Posted July 9, 2007 Share Posted July 9, 2007 What do you mean reload every time they're used? They should already! Link to comment https://forums.phpfreaks.com/topic/59168-solved-force-reload/#findComment-293886 Share on other sites More sharing options...
suttercain Posted July 9, 2007 Share Posted July 9, 2007 If you're talking about a page reload, than no. You would have to use javascript. Link to comment https://forums.phpfreaks.com/topic/59168-solved-force-reload/#findComment-293887 Share on other sites More sharing options...
ShaolinF Posted July 9, 2007 Author Share Posted July 9, 2007 Yeh sorry, page load. How can I go around doing that ? Link to comment https://forums.phpfreaks.com/topic/59168-solved-force-reload/#findComment-293893 Share on other sites More sharing options...
suttercain Posted July 9, 2007 Share Posted July 9, 2007 You would need to use JavaScript. PHP can not reload the page after hit has been loaded. Link to comment https://forums.phpfreaks.com/topic/59168-solved-force-reload/#findComment-293896 Share on other sites More sharing options...
The Little Guy Posted July 9, 2007 Share Posted July 9, 2007 This is incorrect: If you're talking about a page reload, than no. You would have to use javascript. header("Refresh:5; index.php"); //refresh to new location after 5 seconds, or current location header("Location: index.php"); //go instantly to new page without loading the current page Link to comment https://forums.phpfreaks.com/topic/59168-solved-force-reload/#findComment-293897 Share on other sites More sharing options...
Yesideez Posted July 9, 2007 Share Posted July 9, 2007 http://www.tips-tricks.com/automa.asp Link to comment https://forums.phpfreaks.com/topic/59168-solved-force-reload/#findComment-293898 Share on other sites More sharing options...
Wildbug Posted July 9, 2007 Share Posted July 9, 2007 If you mean you don't want the browser to use a cached page, you can put a pragma: no-cache meta tag in your HTML, or use HTTP headers. Google "cache-control" and "pragma no cache" for more information. And see these: http://www.mnot.net/cache_docs/ http://www.htmlgoodies.com/beyond/reference/article.php/3472881 [see Section 14.9] http://www.faqs.org/rfcs/rfc2616 Link to comment https://forums.phpfreaks.com/topic/59168-solved-force-reload/#findComment-293949 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.