Here\'s my code:
$language = $_GET[\'soundtype\'];
$word = $_GET[\'sound\'];
$word = urlencode($word);
if ($language == \'english\') {
$url = \"
As explained by @MrCode, first downloading the file to your server, then passing it on to the client will of course incur a doubled download time. If you want to pass the file on to the client directly, use readfile.
Alternatively, think about if you can't simply redirect the client to the file URL using a header("Location: $url")
so the client can get the file directly from the source.