Auto refresh webpage every 5 second with PHP,HTML and JavaScript:
Posted by Raj
Auto refresh webpage every 5 second with PHP,HTML and JavaScript:
In this section,I will show how to auto refresh web page with php,HTML and Javascript
Auto refresh the web page every 5 seconds, with PHP
<?php
$url=$_SERVER['REQUEST_URI'];
header("Refresh: 5; URL=$url");
?>
Using HTML Meta Tag:
Refresh Page after every 5 seconds.
<meta http-equiv=”refresh” content=”5; URL=http://rajeshstutorials.blogspot.com”>
Using Javascript:
<body onload=”javascript:setTimeout(“location.reload(true);”,5000);”>
time in milliseconds. So if you want to refresh web page after every 5 second than time will be 5000.
In this section,I will show how to auto refresh web page with php,HTML and Javascript
Auto refresh the web page every 5 seconds, with PHP
<?php
$url=$_SERVER['REQUEST_URI'];
header("Refresh: 5; URL=$url");
?>
Using HTML Meta Tag:
Refresh Page after every 5 seconds.
<meta http-equiv=”refresh” content=”5; URL=http://rajeshstutorials.blogspot.com”>
Using Javascript:
<body onload=”javascript:setTimeout(“location.reload(true);”,5000);”>
time in milliseconds. So if you want to refresh web page after every 5 second than time will be 5000.
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
auto refresh page,
auto refresh web page,
auto refresher,
autorefresh,
how to refresh a browser,
how to refresh your browser,
php auto refresh,
refresh webpage automatically,
reload every
.You can leave a response, or trackback from your own site.