PHP refresh window? equivalent to F5 page reload?

前端 未结 10 2839
后悔当初
后悔当初 2021-01-01 23:45

Is there anything in PHP that is the equivalent of manually pressing the F5 page reload button? My php script is in a frame and isn\'t the parent script but it needs to ref

10条回答
  •  青春惊慌失措
    2021-01-02 00:05

    with php you can use two redirections. It works same as refresh in some issues.

    you can use a page redirect.php and post your last url to it by GET method (for example). then in redirect.php you can change header to location you`ve sent to it by GET method.

    like this: your page:

    
    

    redirect.php:

    
    

    that worked for me good.

提交回复
热议问题