Question #758
Submitted by Answiki
on 10/26/2021 at 12:10:58 PM UTC
How to redirect after x seconds in PHP?
Merged questions
Answer
Submitted by Answiki
on 10/26/2021 at 12:10:32 PM UTC
In PHP scripts, the best way redirect after a given amount of time is to specify the HTTP header with the function header() :
header( "refresh:5;url=https://www.example.com" );
The above example redirect to https://www.example.com after 5 seconds.
Question by Answiki 10/26/2021 at 12:13:44 PM
With PHP, how to redirect after 5 seconds?
Question by Answiki 10/26/2021 at 12:10:58 PM
How to redirect after x seconds in PHP?
Question by Answiki 10/26/2021 at 12:10:53 PM
How to redirect after N seconds in PHP?
Question by Answiki 10/26/2021 at 12:10:47 PM
How to redirect after 5 seconds in PHP?
Answer by Answiki on 10/26/2021 at 12:10:32 PM
In PHP scripts, the best way redirect after a given amount of time is to specify the HTTP header with the function header() :
header( "refresh:5;url=https://www.example.com" );
The above example redirect to https://www.example.com after 5 seconds.
Question by Answiki 10/26/2021 at 12:09:16 PM
With PHP, how to redirect page after 5 seconds?
| # | ID | Query | URL | Count |
|---|---|---|---|---|
| 0 | 12079 | en | https://en.ans.wiki/758/how-to-redirect-after-x-seconds-in-php | 8 |
Icons proudly provided by Friconix.