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 refresh php

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-08-29 09:55:5328174browse

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.

How to refresh php

2. In index.php, enter the code: echo ("<script>setTimeout('window.location.reload()', 1);< /script>");. </script>

How to refresh php

#3. When the browser runs the index.php page, it will be found that the page will automatically refresh.

How to refresh php

The above is the detailed content of How to refresh php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn