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"));
辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读: php strtotime如何处理过去时间