hello guys
I'm trying to move some pics from a folder called /tmp to a folder called /photos.
I've stored the image filename in:
$_SESSION['pic1']
The code i'm using is the following:
rename("tmp/".$_SESSION['pic1']."", "photos/".$_SESSION['pic1']."");
but i get the following error:
Warning: rename(tmp/,photos/) [function.rename]: File exists in C:\wamp\www\site.com\v3\control.php on line 69
When i alter my code and instead of the SESSION variable i use the actual filename.jpg, everything works smoothly!
Any clue???






Bookmarks