웹 사이트에 폴더 및 하위 폴더를 만들려고합니다. 코드는 매우 간단합니다. 왜 작동하지 않는지 확실하지 않습니다.PHP : 디렉토리 생성
<?php
$domain = "officeactionuspto.com";
mkdir(($_SERVER["DOCUMENT_ROOT"].'/crc/website_templates/client_files/'.$domain), 0777, true);
mkdir(($_SERVER["DOCUMENT_ROOT"].'/crc/website_templates/client_files/'.$domain.'/images'), 0777, true);
$folder= $_SERVER["DOCUMENT_ROOT"].'/crc/website_templates/client_files/'.$domain.'/images';
if(is_dir($folder))
{
echo ("$folder is a directory");
}
else
{
echo ("$folder is not a directory");
}
?>
확실하지 않습니다. –
당신은 1 억 달러의 허락을 받았습니다. –
허가? 그것은 내 0777을 좋아하지 않는다? –