Sleep function has been disabled

Hello, I am attempting to create a redirect page that sends the user back to the home-page after 5 seconds in php. Unfortunately, the website returns the error that the sleep function has been disabled due to security reasons. Because I literally started learning PHP yesterday, and have no idea what I am doing, this is above my head completely. Can someone explain to me how to fix it? Thank you.
image|690x79

You can use the header() function instead.

About sleep:

1 Like

How to implement the header refresh method, specifically.

3 Likes

Ok, this should solve my problem if it works. Thank you.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.