Redirecting to a URL with a Delay in PHP


Use header() with refresh to redirect after a specified delay.

Source Code

header("refresh:5;url=https://www.example.com");
echo "You will be redirected in 5 seconds";
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments