Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
任何人都可以说我们如何使用 php.ini 创建文件夹。
我试图在 /var/www/php 中创建文件夹,但它失败了。为什么会这样?
我的代码是这样的
<?php $path=getcwd.'/images'; mkdir($path,777); ?>
这个脚本有什么错误。
您使用了错误的功能更改getcwd,getcwd()它会起作用。
getcwd
getcwd()
也许你应该看看文件夹权限。使用 ls,检查要在其中创建新文件夹的文件夹组。还要验证是否允许对组进行写入。最后,执行您的 php 脚本的服务器必须是该组的成员。