What does it mean?
Posted: Sat Aug 24, 2002 1:21 pm
I'm working on a script which has been developed by another person. It deals with folder removing. Here is the part of code:
But i don't understand well the following line:
"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?
"
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?
"