if you have a page you want to show for a few seconds and after that you want new page on same browser window. for example let say you want to display advertisement on your page for few second, after that you want to display website content on same browser window.
so here is code,
$book = $_GET[‘book’];
header (“Refresh: 10; url=../pdf/$book“);
Note : That Bold font indicate url which you want to redirect after 10 seconds.