Code: Select all
if ($dir = @opendir("$dir2remove"))
{
while (($file = readdir($dir)) !== false)
{
if (!($file=="." || $file==".." || $file=="index.html"))
{
chdir($version_depository."topic".$ct_topic_id."/".$file);
system("rm *");
chdir($version_depository."topic".$ct_topic_id."/");
rmdir($file);
}
} //close while
closedir($dir);"system("rm *");" Does it mean to delete the folder? But the command for deleting folder is another. Ijust couldn't find anyting similiar in php manual. So can anyone help me?
"