[PHP] Re: Renaming Directories

2005-03-21 Thread Daniel Schierbeck
Daniel Schierbeck wrote: I've made a small PHP script that renames the files and folders in my music library, to make them more linux-friendly. I'm running PHP 5.0.3 on version 2.6.9 kernel. What's happening is that all files and folders are renamed, except for folders whose names consist of

Re: [PHP] Re: Renaming Directories

2005-03-21 Thread Frank Arensmeier
Hello Daniel! In the code it says: echo rename($path_old, $path_new) ? done\n : failed\n; I assume that this line is supposed to actually rename the directory. Why did you wrote echo before rename? Try to change the code to: if (!rename($path_old,$path_new)) { echo failed\n; } else {