我想在网站上创建文件夹和子文件夹。代码很简单。不知道为什么不起作用。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");
}
?>
我们不确定。 – 2014-11-24 21:55:27
赌你一美元其许可问题 – 2014-11-24 21:56:12
权限?它不喜欢我的0777? – 2014-11-24 21:56:54