Hello folks. Minor problemette

When I run this

<?php

$file='directory/test.mp3';

header("Content-Type: mp3");
header('Content-disposition: attachment; filename="'.$file.'"');

?>


it tries to access

directory_test.mp3


which isn't there. I've tried various urlencodings etc - to no avail.


Any idea what to do about this?





Nick

--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to