試不出來`~~~:-?
請問gol4302兄~~您說用fopen來讀~~在echo出來~~
是不是要echo "<a href="url">url</a>";這樣的東西呢??
可是這樣url就被看到了~~
(我用fopen會出現錯誤耶~~)
底下內容~~請指教~~~
test.php
--------------------------
$file="http://abc.com.tw/03.mp3";
header( "Expires: 0" );
header( "Content-Type: application/save-as" );
header( "Content-Disposition: attachment; filename=$flie");
header( "Content-Length: 1234" );
readfile($file);
--------------------------
如果$file是test.txt它會下載別台機器上(
http://abc.com.tw/test.tx)的內容
可是儲存檔名為test.php
如果是$file是03.mp3 那它也會下載一檔名為test.php的檔~~但內容就不是03.mp3了~~
請問應該怎樣才能讓它下載的檔名為test.txt或03.mp3並且內容是正確的呢??