我正在尝试使用PHP unlink()函数删除文件夹中的特定文档.该特定文件夹已分配给IIS用户的完全权限.
码:
$Path = './doc/stuffs/sample.docx';
if (unlink($Path)) {
echo "success";
} else {
echo "fail";
}
Run Code Online (Sandbox Code Playgroud)
它会让回报失败.sample.docx确实驻留在该特定路径上.好心提醒.