在保存的時候,如何設置保存路徑?
在定義保存函數的時候,如何自定義保存路徑?
public function save($newname){
$funs = "image{$this->info['type']}";
$funs($this->image,$newname.'.'.$this->info['type']);
在定義保存函數的時候,如何自定義保存路徑?
public function save($newname){
$funs = "image{$this->info['type']}";
$funs($this->image,$newname.'.'.$this->info['type']);
2016-04-16
舉報
2016-04-18
加絕對路徑或者相對路徑都行啊。你這個默認是當前路徑并且文件名為$newname.'.'.$this->info['type'], ?你也可以比如:../$newname.'.'.$this->info['type'],這是上個目錄 ? ?或者../linda1/$newname.'.'.$this->info['type'] 這是上個目錄下linda1目錄下。