Hey,
I'm using the following :
@header("Cache-Control: no-cache, must-revalidate");
@header("Content-Type: application/octet-stream");
@header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
@header("Content-Length: ".$row['file_size']);
@header("Content-Disposition: attachment; filename=\"".$row['artist'] . " - " .$row['title']."\"");
@header("Content-type: audio/mpeg;\r\n");
to start a download, now for some reason its giving me
Warning: readfile(http://theurl.com/downloads/the file some spaces.mp3) [function.readfile]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/belgin/public_html/dl.php on line 29
now the url is valid, I've triple checked but could it be because there's spaces in the file name? And if so how can i fix that? Thanks
reafile line :
readfile(http://domain.com/downloads/Warp 1.9_The Bloody Beetroots_320000.mp3)