PHP - Delay on redirect

php, redirect

Solution

You can send php header with timeout refresh. http://php.net/manual/en/function.header.php

<?php 
  header( "refresh:5; url=wherever.php" ); 
?>

Problem

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 go about creating a 5 second delay so I can display some adverts for 5 seconds before redirecting them?

Original source

Related problems