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
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
{
2 matches
Mail list logo