i want to solution download file into php I am using this way to download file but getting issue download file code
$filename = '[file name].[extension]';
$file="application/[extension]";
if(ini_get('zlib.output_compression'))
ini_set('zlib.output_compression', 'Off');
problem:
Try this Follow the instruction by variable.... Use file path not filename
header("Content-Transfer-Encoding: Binary");
header("Content-length: ".filesize($dest_file_path));
header('Content-Type: text/xml');
header('Content-Disposition: attachment; filename="'.$dest_file_name.'"');
readfile($dest_file_path);
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加