Back to index

php5  5.3.10
Functions
utils.inc File Reference

Go to the source code of this file.

Functions

 dump_entries_name ($z)
 rmdir_rf ($dir)

Function Documentation

Definition at line 3 of file utils.inc.

                               {
       for($i=0; $i<$z->numFiles; $i++) {
           $sb = $z->statIndex($i);
           echo $i . ' ' . $sb['name'] . "\n";
       }
}
rmdir_rf ( dir)

Definition at line 10 of file utils.inc.

                        {
       if ($handle = opendir($dir)) {
              while (false !== ($item = readdir($handle))) {
                     if ($item != "." && $item != "..") {
                            if (is_dir($dir . '/' . $item)) {
                                   rmdir_rf($dir . '/' . $item);
                            } else {
                                   unlink($dir . '/' . $item);
                            }
                     }
              }
              closedir($handle);
              rmdir($dir);
       }
}

Here is the call graph for this function: