function sendfile($myFile){
$mm_type="application/octet-stream";
$fp = fopen($myFile,'rb');
$size = filesize($myFile);
ob_start();
header("Cache-Control: public, must-revalidate");
header("Pragma: hack");
header("Content-Type: " . $mm_type);
header('Content-Disposition: attachment; filename="'.$fname.'"');
header("Content-Transfer-Encoding: binary ");
if (isset($_SERVER['HTTP_RANGE']) && ($_SERVER['HTTP_RANGE'] != "") && preg_match("/^bytes=([0-9]+)-/i", $_SERVER['HTTP_RANGE'], $match) && ($match[1]
$range = $match[1];
fseek($fp, $range);
header("HTTP/1.1 206 Partial Content");
//header("Date: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s", filemtime($myFile))." GMT");
header("Accept-Ranges: bytes");
$rangesize = ($size - $range) > 0 ? ($size - $range) : 0;
header("Content-Length:".$rangesize);
header("Content-Range: bytes ".$range.'-'.($size-1)."/".$size);
//header("Connection: close"." ");
}else{
header("Content-Length: ".(string)($size));
header("Accept-Ranges: bytes");
$range = 0;
}
fpassthru($fp);
ob_end_flush();
}

ホットAIツール

Undresser.AI Undress
リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover
写真から衣服を削除するオンライン AI ツール。

Undress AI Tool
脱衣画像を無料で

Clothoff.io
AI衣類リムーバー

AI Hentai Generator
AIヘンタイを無料で生成します。

人気の記事

ホットツール

SAP NetWeaver Server Adapter for Eclipse
Eclipse を SAP NetWeaver アプリケーション サーバーと統合します。

MinGW - Minimalist GNU for Windows
このプロジェクトは osdn.net/projects/mingw に移行中です。引き続きそこでフォローしていただけます。 MinGW: GNU Compiler Collection (GCC) のネイティブ Windows ポートであり、ネイティブ Windows アプリケーションを構築するための自由に配布可能なインポート ライブラリとヘッダー ファイルであり、C99 機能をサポートする MSVC ランタイムの拡張機能が含まれています。すべての MinGW ソフトウェアは 64 ビット Windows プラットフォームで実行できます。

SublimeText3 Mac版
神レベルのコード編集ソフト(SublimeText3)

VSCode Windows 64 ビットのダウンロード
Microsoft によって発売された無料で強力な IDE エディター

SublimeText3 英語版
推奨: Win バージョン、コードプロンプトをサポート!
