코드이그나이터 기반 PHP 오픈소스 게시판 : 씨아이보드

mkdir 폴더생성 안됨

  • 불사신
  • 1
  • 1,860
  • 글주소
  • 03-30

centos8

nginx 1.8.x

php7.4

mysql8


이렇게 설치했는데 


editor/2021/03/ 폴더 나와야하는데


2021폴더하고 03폴더하고


mkdir 폴더생성안되고 아시는분 알려주세요


/application/libraries/Imagelib.php

save_external_image함수인데

$upload_path = config_item('uploads_dir') . '/editor/';

if (is_dir($upload_path) === false) {

mkdir($upload_path, 0707);

$file = $upload_path . 'index.php';

$f = @fopen($file, 'w');

@fwrite($f, '');

@fclose($f);

@chmod($file, 0644);

}


$upload_path .= cdate('Y') . '/';

if (is_dir($upload_path) === false) {

mkdir($upload_path, 0707);

$file = $upload_path . 'index.php';

$f = @fopen($file, 'w');

@fwrite($f, '');

@fclose($f);

@chmod($file, 0644);

}


$upload_path .= cdate('m') . '/';

if (is_dir($upload_path) === false) {

mkdir($upload_path, 0707);

$file = $upload_path . 'index.php';

$f = @fopen($file, 'w');

@fwrite($f, '');

@fclose($f);

@chmod($file, 0644);

}