I know that we should replace forwards slashes and for example explode the path and use the last element of the array as filename.
But why is the fordward slash converted to a hyphen / dash when using
header('Content-Disposition: attachment; filename="'.$local_file.'"');
when $local_file
is something like /file
the downloaded file has the filename -file
Is this behaviour described somewhere?
The rfc paper does not mention this, or does it? http://www.faqs.org/rfcs/rfc2183.html