I got created a directory using PHP's mkdir command, but I want to rename the directory. Problem is that my ftp client wont let me since it says I dont have permission to do that (since it was php and not me who created the directory). I was wondering how I could rename the directory using php.
I created the a page with the following and chmod 777 but it didnt work:
<?
$old = "../images/1";
$new = "../images/2";
if (!rename($old, $new))
die ("rename error");
?>
And get the following error message:
Warning: rename(../images/1,../images/2): No such file or directory in [mypage] on line 4
rename error
Thanks