Ho to rename folder???

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fredyfonda
Forum Newbie
Posts: 6
Joined: Tue Feb 28, 2006 1:54 am
Contact:

Ho to rename folder???

Post by fredyfonda »

Hi...

I'm making a admin that every time I add new data, it will make new folder and than create file in it.
I create the folder using mkdir().
The problem is, I want to rename the folder. I try find in PHP Manual, but it seems there isn't any function to rename folder.
What I do now is, delete the file, delete the folder, create new folder, and create again the file. It's very frustating to do like that.
Does anyone can help me with this problem?
I want to rename the folder but the file still keep untouch in that folder.

Thanks to you all.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

did you try rename()
Post Reply