0
PHP 업로드 스크립트를 사용하여 동적으로 생성 된 모든 폴더에 권한이 부여되어 1354 파일을 저장할 수 없습니다.MKDIR이 올바르게 작동하지 않습니다.
if(!file_exists($options['uploadDir']) && !is_dir($options['uploadDir'])
&& mkdir($options['uploadDir'], 0750, true))
{
$this->data['hasWarnings'] = true;
$this->data['warnings'] = "A new directory was created in " .
realpath($options['uploadDir']);
}
if(!is_writable($options['uploadDir']))
@chmod($options['uploadDir'], 0750);
내가 뭘 잘못하고 있는지 알 수 없습니다.
실제 코드입니까? base 10의 750은 base 8의 1356이므로, '0750'대신 코드에 '750'을 넣는 것과 매우 흡사합니다. –