O to mój kod:
//First, see if the file exist //Gather relevent info about file //This will set the Content-Type to the appropriate setting for the file switch( $file_extension ) { case "sta": $ctype="text/plain"; break; default: $ctype="text/plain"; } //Begin writing headers //Use the switch-generated Content-Type //Force the download @$header="Content-Disposition: attachment; filename=".$filename.""; exit;
I pisze: File not found.
Wie ktoś, jak to poprawić?