Redirect to specified URL on PHP script completion?

后端 未结 7 1077
逝去的感伤
逝去的感伤 2020-12-13 08:57

How can I get a PHP function go to a specific website when it is done running?

For example:



        
7条回答
  •  长情又很酷
    2020-12-13 09:42

    You could always just use the tag to refresh the page - or maybe just drop the necessary javascript into the page at the end that would cause the page to redirect. You could even throw that in an onload function, so once its finished, the page is redirected

    window.location = 'http://www.yourdomain.com'";
    ?>
    

提交回复
热议问题