> > I am trying to crate the function that will allow the > administrator to Move a selected file to a different folder. > I have looked at move_uploaded_file () and it seems that > the source file to move needs to actually be the file's temp name. > If the file has recently been uploaded then the temp name is > accessible via $_Files[] array, but if the file was uploaded say a > week before I assume that the temp name is no longer there.
Not only is the temp name no longer there, nor is the file! When you upload a file, the temporary place where PHP puts it is only valid for the life of the script which processes the file upload -- it is automatically deleted upon completion of that script. - This is how I understood it. If you want the file to go into a holding location until your administrator can approve it and move it to its real final location, then the holding location should be the target of the move_uploaded_file(). This makes it up to you to decide what you want the structure of your holding location to be, and how you want to keep track of any files currently populating it. - I'm a little confused. The files are already in there real location. It is just that someone may want to change that location at a later date. e.g. they upload an image to a folder and two months later decide it is better placed in a different folder. Or am I missing something really obvious. The other solution I can see is to copy the file to the new location and delete the original Cheers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php