在mac中写php无法用mkdir创建目录该怎么做呢?
Warning:mkdir():Permissiondeniedin/Applications/XAMPP/xamppfiles/htdocs/tableexchange...
Warning: mkdir(): Permission denied in /Applications/XAMPP/xamppfiles/htdocs/tableexchange/fileoperate.php on line 4Prepare to build file.出现以上错误,将应用程序文件夹的权限改成『读与写』还是不行,请问怎么处理呢?
源代码是这个:
<?php
$dir="test";
$re=mkdir($dir);
echo"Prepare to build file.<p>";
if($re){
echo"File build complete.<p>";
$re1=rmdir($dir);
if($re1){
echo"File delete complete.<p>";
}else{
echo"File delete failed.<p>";
}
}else{
echo"File build failed.<p>";
}
?> 展开
源代码是这个:
<?php
$dir="test";
$re=mkdir($dir);
echo"Prepare to build file.<p>";
if($re){
echo"File build complete.<p>";
$re1=rmdir($dir);
if($re1){
echo"File delete complete.<p>";
}else{
echo"File delete failed.<p>";
}
}else{
echo"File build failed.<p>";
}
?> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询