This article describes how to implement regular jump on a PHP page. The example shows how to use the header function to implement jump, for more information about how to implement regular jump on the PHP page, see the example in this article. The specific implementation method is as follows:
For php scheduled jump, we need to use the header function to input html or js code for scheduled jump. here is a simple example.
The php code is as follows:
Header ("refresh: 3; url = https://www.php1.cn"); print ('loading, please wait... automatically jump to the first PHP community after three seconds ~~~ ');
The output html code is
Same effect.
In this way, automatically jump to the https://www.php1.cn after 3 seconds.
Note that if your file is uft-8 encoded, we should be careful not to have the output or BOM character before the header, which may cause the jump to fail.
I hope this article will help you with PHP programming.