setTimeout('window.location.reload()', 1);");. ||The browser runs the php page, and it is found that the page will automatically refresh."/> setTimeout('window.location.reload()', 1);");. ||The browser runs the php page, and it is found that the page will automatically refresh.">
Home > Article > Backend Development > How to refresh php
How to implement automatic page refresh in php, the specific steps are as follows:
Related recommendations: "PHP Tutorial"
1. First, open the php editor and create a new php file, for example: index.php.
2. In index.php, enter the code: echo ("<script>setTimeout('window.location.reload()', 1);< /script>");. </script>
#3. When the browser runs the index.php page, it will be found that the page will automatically refresh.
The above is the detailed content of How to refresh php. For more information, please follow other related articles on the PHP Chinese website!