public function store($location){
if($this->zip->open($location, file_exists($location) ? ZIPARCHIVE::OVERWRITE : ZIPARCHIVE::CREATE)){
foreach($this->files as $file){
$this->count++;
$this->image_name ="OrderImg".$this->count.".png";
$this->set = str_replace('data:image/png;base64,', '', $file);
$this->set = str_replace(' ', '+', $file);
$this->zip->addFile($this->image_name, base64_decode($file));
}
$this->zip->close();
}
}
怎麼我的base64解碼我的畫布的數據,放在我的zip文件,我不能讓在這裏工作,我的意思是讓我的畫布數據解碼使用Base64和zip它在一起。解碼Base64和傳遞到壓縮文件
壓縮文件didt創建,我不知道爲什麼。
問題是什麼? – axiac
壓縮文件didt創建,我不知道爲什麼。 –
在功能之前刪除公共,並檢查它是否可用並啓用[錯誤報告](http://stackoverflow.com/q/845021/5914775)。 –