Code: Select all
echo $file . ': ' . formatBytes(filesize($path."/".$file), 2) . ' </a><br/>'; Code: Select all
echo $file . ': ' . formatBytes(filesize($path."/".$file), 2) . ' </a><br/>'; Code: Select all
            if ( is_file($dir.$file) ){
                $ext = substr(strrchr($file, '.'), 0);
                if ($ext == ".avi" || $ext == ".wmv"){    // you can add more media file types to this condition
             
                   $sub_file = str_ireplace($ext, ".srt", $dir.$file);
                   $idx_file = str_ireplace($ext, ".idx", $dir.$file);
                   $thumb_file = str_ireplace($ext, ".jpg", $dir.$file);
                   $out_file = str_ireplace($ext, ".drc", $dir.$file);
                   flv_convert_get_thumb($dir.$file, $sub_file, $idx_file, $thumb_file, $out_file);
                }
                else{
                    continue;
                }
            }
  working i'm using now the interface to encode files and display on my wordpress
  working i'm using now the interface to encode files and display on my wordpress  