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 ? Quote 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! Quote 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. Quote 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 ? Quote 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. Quote 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 Quote 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 Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/59168-solved-force-reload/#findComment-293949 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.