Php 使用codeigniter生成的缩略图
CI生成的缩略图是对我还是对每个人都有777权限? 我如何设置它在默认情况下只有644Php 使用codeigniter生成的缩略图,php,codeigniter,thumbnails,Php,Codeigniter,Thumbnails,CI生成的缩略图是对我还是对每个人都有777权限? 我如何设置它在默认情况下只有644 谢谢在您的应用程序/configs/constants.php文件中,您有4个常量: define('FILE_READ_MODE', 0644); define('FILE_WRITE_MODE', 0666); define('DIR_READ_MODE', 0755); define('DIR_WRITE_MODE', 0777); 对于图像库,由于未知原因,codeigniter使用DIR\u WR
谢谢在您的应用程序/configs/constants.php文件中,您有4个常量:
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);
对于图像库,由于未知原因,codeigniter使用DIR\u WRITE\u模式
存储图像文件
您应该与CI人员仔细检查这一点,因为我认为他们应该使用FILE\u WRITE\u模式
您可以打开库文件并手动修改部分,如
if ($this->dynamic_output === FALSE)
{
if ($this->orig_width == $this->width AND $this->orig_height == $this->height)
{
if ($this->source_image != $this->new_image)
{
if (@copy($this->full_src_path, $this->full_dst_path))
{
@chmod($this->full_dst_path, DIR_WRITE_MODE);
}
}
return TRUE;
}
}
并更改行@chmod($this->full_dst_path,DIR_WRITE_MODE)编码>到文件\写入\模式
,以便正确写入
文件中有几个类似的部分,因此您可能需要在应用程序/configs/constants.php文件中搜索其他部分。您有4个常量:
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);
对于图像库,由于未知原因,codeigniter使用DIR\u WRITE\u模式
存储图像文件
您应该与CI人员仔细检查这一点,因为我认为他们应该使用FILE\u WRITE\u模式
您可以打开库文件并手动修改部分,如
if ($this->dynamic_output === FALSE)
{
if ($this->orig_width == $this->width AND $this->orig_height == $this->height)
{
if ($this->source_image != $this->new_image)
{
if (@copy($this->full_src_path, $this->full_dst_path))
{
@chmod($this->full_dst_path, DIR_WRITE_MODE);
}
}
return TRUE;
}
}
并更改行@chmod($this->full_dst_path,DIR_WRITE_MODE)编码>到文件\写入\模式
,以便正确写入
文件中有几个类似的部分,因此您可能需要搜索其他部分谢谢您的详细解释。谢谢您的详细解释。