I have been playing about with the rename function (see code snippet below) If the rename is changed so they both happen in /randomgall/ there is no problem, but as it as (with the renamed directory going to /gallerytest/) I get the following error... Warning: rename(i/randomgall/blahblahblah/,i/gallerytest/blahblahblah-09-27-2008/) [function.rename]: Permission denied in /home/....
Code:
mkdir("/home/justbond/public_html/i/gallerytest/".$newgalname, 0410); chmod ("/home/justbond/public_html/i/gallerytest/".$newgalname, 0777); sleep(5); rename("i/randomgall/$pickedgal/", "i/gallerytest/$newgalname/");
|