Home > Article > Backend Development > How to delay page jump in php
In PHP, you can achieve delayed page jump by setting the code "header("Refresh:5;url=index.php");", where Refresh specifies a certain time interval for jump.
The operating environment of this article: Windows 7 system, PHP version 7.1, Dell G3 computer.
How to delay page jump in php?
When php uses header redirection, you can set a delayed jump.
The code is as follows:
header("Refresh:5;url=index.php");
Refresh: Jump at a certain time interval .
The header() function sends raw HTTP headers to the client.
It is important to realize that the header() function must be called before any actual output is sent.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to delay page jump in php. For more information, please follow other related articles on the PHP Chinese website!