PHP - Delay on redirect

后端 未结 3 622
借酒劲吻你
借酒劲吻你 2020-12-30 15:40

I\'m using the following code to use as a form of nulling referring script and it works perfectly but it just redirects them straight to the target URL.

How would I

3条回答
  •  感情败类
    2020-12-30 15:43

    What about using sleep()?

    function method1(...) {
    
    sleep(5);
    
    ... rest of the code
    

    Note however that it is more recommended to use Vahe Shadunts's answer, which uses header() instead.

提交回复
热议问题