How do I redirect to another page after 5 minutes using PHP?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a limit to how many levels you can nest i
- Laravel Option Select - Default Issue
- How to toggle on Order in ReactJS
- PHP Recursively File Folder Scan Sorted by Modific
With just HTML:
This will redirect to
http://redirect-url
after 300 seconds (5 minutes).Javascript's setTimeout() is probably what you want. An example would be:
window.location is what you can use in javascript to set the current location of the window. Something to consider, however, is that most browsers do not let you set window.location without some type of user input before hand, such as a click.
See here
If you really want to use PHP for this, here you go: