Home  >  Article  >  Backend Development  >  How to delay page jump in php

How to delay page jump in php

藏色散人
藏色散人Original
2021-09-22 11:03:372488browse

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.

How to delay page jump in php

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!

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