PHPBuilder - Mass file Rename



RSS Twitter
Snippets File Management

Mass file Rename

by: kakchan
|
November 25, 2002

Version: 1.0b

Type: Full Script

Category: File Management

License: GNU General Public License

Description: This Script simply Rename to lowercase all file in a directory, if you want to contact my my web community is on http://www.dawnofdreams.org



<?php
$path = "*********PATH***********";
$dir=opendir($path); 
while ($file2 = readdir($dir)) { 
if ($file2 != ".." AND $file2 != ".") {
$new = strtolower($file2);
rename($file2, $new);}
} 
closedir($dir);
?>

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
kakchan

Comment:



Comment:

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