function內(nèi)調(diào)用唯一文件名的function 報(bào)錯(cuò)
2019-02-24
單文件多文件完美上傳類(完成案例):
http://www.cnblogs.com/xiaogou/p/8977647.html
http://www.cnblogs.com/xiaogou/p/8977647.html
2018-05-01
<?php
$filename=$_GET['filename'];
header("content-disposition:attachment;filename=".basename($filename));//告訴瀏覽器通過附件的形式處理文件
header('content-length:'.filesize($filename));//下載文件的大小
readfile($filename);//讀取文件的內(nèi)容
每一項(xiàng)都需要,去掉的話下載的文件就不正常,我測(cè)試過!
$filename=$_GET['filename'];
header("content-disposition:attachment;filename=".basename($filename));//告訴瀏覽器通過附件的形式處理文件
header('content-length:'.filesize($filename));//下載文件的大小
readfile($filename);//讀取文件的內(nèi)容
每一項(xiàng)都需要,去掉的話下載的文件就不正常,我測(cè)試過!
2018-04-30
調(diào)試好了,這些都要定義下;
protected $fileName;
protected $maxSize;
protected $allowMime;
protected $allowExt;
protected $uploadPath;
protected $imgFlag;
protected $fileInfo;
protected $error;
protected $ext;
protected $uniName;
protected $destination;
protected $fileName;
protected $maxSize;
protected $allowMime;
protected $allowExt;
protected $uploadPath;
protected $imgFlag;
protected $fileInfo;
protected $error;
protected $ext;
protected $uniName;
protected $destination;
2018-04-30