w manualu znalazlem takie cos
<?php
function dl_file($file){
//First, see if the file exists
if (!is_file($file)) { die(\"404 File not found!\"); }
//Gather relevent info about file
//This will set the Content-Type to the appropriate setting for the file
switch( $file_extension ) {
case \"mp3\": $ctype=\"audio/mpeg\"; break;
case \"wav\": $ctype=\"audio/x-wav\"; break;
case \"mpeg\":
case \"mpg\":
case \"mpe\": $ctype=\"video/mpeg\"; break;
case \"mov\": $ctype=\"video/quicktime\"; break;
case \"avi\": $ctype=\"video/x-msvideo\"; break;
default: $ctype=\"application/force-download\";
}
//Begin writing headers
header(\"Pragma: public\"); header(\"Cache-Control: must-revalidate, post-check=0, pre-check=0\"); header(\"Cache-Control: public\"); header(\"Content-Description: File Transfer\");
//Use the switch-generated Content-Type
header(\"Content-Type: $ctype\");
//Force the download
$header=\"Content-Disposition: attachment; filename=\".$filename.\";\";
header(\"Content-Transfer-Encoding: binary\"); header(\"Content-Length: \".$len); }
?>
tylko niewiem czy takie cos sie wogóle nadaje. czy nie zapcham tym serwera itp.
Może znajdzie się ktoś z doświadczeniem w tych kwestiach.
// tak na boku chce zrobić sobie playlist plików video w mysql jakby ktoś znał gotowca to bym sie ucieszył