|
发表于 2011-11-30 17:05:58
|
显示全部楼层
用file helper不知道行不行?
$this->load->helper('file');
$string = read_file('./path/to/file.jpg');
$data = $string;
if ( ! write_file('./path/to/file2.jpg', $data))
{
echo 'Unable to write the file';
}
else
{
echo 'File written!';
}
我没有试过.user guide里面,只有读取和写入php文件的例子,不知道图像文件是否同样可以操作. |
|