krytikal Posted June 23, 2010 Share Posted June 23, 2010 I am trying to rename a folder and its sub folder at the same time in a parent folder. To clear things up here is a snippet <?php rename("../folder1old/subfolder2old", "../folder1new/subfolder1new"); ?> As you can see I am renaming two folders at the same it. Is there a better way of doing it because, at the moment I am getting an error: Warning rename( blah ) : No error in C:\... Thanks Quote Link to comment https://forums.phpfreaks.com/topic/205682-renaming-issue-bug-or-normal-behavior/ Share on other sites More sharing options...
premiso Posted June 23, 2010 Share Posted June 23, 2010 Try using two seperate renames, one for the parent folder and one for the sub and see if it works. If it does then yea, your problem is it cannot be done all at once. I would consider this normal behavior. Quote Link to comment https://forums.phpfreaks.com/topic/205682-renaming-issue-bug-or-normal-behavior/#findComment-1076288 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.