Page 1 of 1

Image moving and renaming on my server

Posted: Wed Mar 15, 2006 9:18 am
by dave_c00
Hello,

I have a folder on my server that contains loads and loads of images.

What I want to do is copy an image from this folder to another location and rename it at the same time all within a function....

....if I have 4 variables:

$name1 = "1.jpg";
$location1 = "/images1/";
$name2 = "2.jpg";
$location2 = "/images2/";

Is this possible.??

Thanks

Dave

Posted: Wed Mar 15, 2006 9:30 am
by JayBird
there is no move function in PHP. What you need to do is read up on the rename() function