[SOLVED] Copying Images from 1 directory to another...
Posted: Tue Feb 01, 2005 5:46 am
erm... I have a problem with image moving.
I want my action to move a image from a users directory (eg; /users/Dale) to a temp directory (eg; /temp).
I use this:
$theuser['username'] returns Dale.
$file returns php.gif.
But it always says Could Not Delete. WhY?
(All the user directories and TEMP folder is CHMODed 777)
I want my action to move a image from a users directory (eg; /users/Dale) to a temp directory (eg; /temp).
I use this:
Code: Select all
<?php
copy ("./users/".$theuserї'username']."/$file", "./temp/".$theuserї'username']."_$file") or die ("Could not delete");
?>$file returns php.gif.
But it always says Could Not Delete. WhY?
(All the user directories and TEMP folder is CHMODed 777)