PHPBuilder - Empty Directory Create

RSS Twitter
Snippets File Management

Empty Directory Create

by: kakchan
August 26, 2002

Version: 1.0

Type: Full Script

Category: File Management

License: GNU General Public License

Description: This Script simply crete empty dir from a folder that contain the same directoyes but full;) if you want to contact my my web community is on

// Silvio Terzi
$path = "**path**"; // source folder = not empty folders
while ($file2 = readdir($dir)) { 
if ($file2 != ".." AND $file2 != ".") {
$dirname = "**path**" . $file2; // target folder = empty folders
mkdir($dirname, 0777);
echo "directory created"; 

Comment and Contribute

Your comment has been submitted and is pending approval.




(Maximum characters: 1200). You have characters left.