本文整理汇总了PHP中fs_director::RemoveDirectory方法的典型用法代码示例。如果您正苦于以下问题:PHP fs_director::RemoveDirectory方法的具体用法?PHP fs_director::RemoveDirectory怎么用?PHP fs_director::RemoveDirectory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类fs_director
的用法示例。
在下文中一共展示了fs_director::RemoveDirectory方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DeleteApacheClientFiles
function DeleteApacheClientFiles()
{
global $zdbh;
$sql = "SELECT * FROM x_accounts WHERE ac_deleted_ts IS NOT NULL";
$numrows = $zdbh->query($sql);
if ($numrows->fetchColumn() != 0) {
$sql = $zdbh->prepare($sql);
$res = array();
$sql->execute();
while ($rowdeletedaccounts = $sql->fetch()) {
// Check for an active user with same username
$sql2 = "SELECT COUNT(*) FROM x_accounts WHERE ac_user_vc=:user AND ac_deleted_ts IS NULL";
$numrows2 = $zdbh->prepare($sql2);
$user = $rowdeletedaccounts['ac_user_vc'];
$numrows2->bindParam(':user', $user);
if ($numrows2->execute()) {
if ($numrows2->fetchColumn() == 0) {
if (file_exists(ctrl_options::GetSystemOption('hosted_dir') . $rowdeletedaccounts['ac_user_vc'])) {
fs_director::RemoveDirectory(ctrl_options::GetSystemOption('hosted_dir') . $rowdeletedaccounts['ac_user_vc']);
}
}
}
}
}
}