I want to write code for my web page(written by PHP language) after 1 minute will refresh automatic. Can you help me? Thank you
How can i write code for my web page(written by PHP) refresh automatic after 1 minute?
php only runs on the server, so you must put in a meta refresh tag in the header. Here is an example:
%26lt;meta http-equiv="refresh" content="60; url=index.html"%26gt;
If for some odd reason you need to write the html from a php script:
%26lt;?php
echo "%26lt;meta http-equiv='refresh' content='60; url=index.html'%26gt;";
?%26gt;
Reply:if you meant to reload on the browser...
this script(javascript) should do it...
%26lt;script language="javascript"%26gt;
window.onload=function(){
setTimeout("window.location.reload(true)...
}
%26lt;/script%26gt;
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment