【发布时间】:2011-12-29 23:09:45
【问题描述】:
例如我有链接:
http://example.com/song.mp3当用户下载它时,文件将被重命名为
艺术家-歌曲.mp3我使用了这个代码:
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://example.com/song.mp3");
header('Content-Disposition: attachment; filename="a-s.mp3"');
exit();
?>
但它不起作用。我需要做什么?
【问题讨论】: