该信息属于http头部信息,php有直接进行头部信息操作的函数。
php的实现方法:
代码如下:
<?php
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=".basename($_GET['url']));
readfile($filename);
?>
代码如下:
<?php
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=".basename($_GET['url']));
readfile($filename);
?>