header("Location: http://www.example.com");
exit;
header("Content-Disposition: attachment; filename='example.pdf'");
header("Content-Type: application/pdf");
readfile("path/to/example.pdf");
header("Refresh: 5; url=http://www.example.com");
echo "页面将在5秒后刷新到新的页面";
header("Content-Type: text/html; charset=UTF-8");
header("Cache-Control: no-cache, no-store, must-revalidate");
header("Pragma: no-cache");
header("Expires: 0");
header("HTTP/1.1 404 Not Found");
header("Content-Length: " . filesize("path/to/example.pdf"));