PHP refresh on a page

1

Is there a way to give refresh to a page in my example:

Login page > sends data to processa.php > send to a menu

Sometimes when I get to the process, it gets "stuck" and then I wanted to know in a way that does not happen.

Thank you

    
asked by anonymous 11.03.2016 / 15:23

3 answers

2

It would be something like:

header("Refresh: 20; url = menu.php");

You put Refresh on 20, if it hangs, it's going to come out

    
11.03.2016 / 15:46
5

If I understand correctly, this is simple to do with PHP:

header("Refresh: 0");

This will reload your current page, and if you need to redirect to another page, use the code below:

header("Refresh: 0; url=pagina2.php");

Note: A discussion on the same subject can be found at the link: link

    
11.03.2016 / 15:46
1

take a look link

In your case I would try something like

header("Refresh:5");//recarrega em 5 segundos

But you have how to find out why you are stopping?

    
11.03.2016 / 15:46