Hi i'm writing a download script for my site, but what am i doing wrong?
i'm getting the following error: Parse error: syntax error, unexpected T_ECHO in /public_html/mobdev/download.php on line 5
This is the download.php file
<?php
header('Content-type: audio/mpeg');
$f1 = $_GET['filename'];
$u1 = $_GET['url'];
header('Content-Disposition: attachment; filename='echo $f1.mp3');
readfile('echo $u1.mp3');
?>
it is called as following, on the page where users chose there content the click a link that is build up like this:
download.php?filename=My%20Favorite%20Swing%20(Hudson%20Mohawke%20Rework)&url=http://22tracks.com/secure/secure.php?file=20_07302010020725_De_De_Mouse-My_Favorite_Swing_Hudson_Mohawke_ReWork.mp3
can someone tell me what i am doing wrong?
thanks in advance!