View Full Version : Moving a file from one directory to another

05-01-2008, 07:15 PM
Hey guys,

I want to be able to move one file from a directory to another. I allow a user to upload an image and it gets stored in:


and then i allow an admin to sift through all the uploaded files. Once they click accept, i want to move the uploaded file to another directory called


When i say i allow the admin to sift through all uploaded files, i mean that i use a database to store the url of the image once it's first uploaded. E.g.

A user uploads file sea.gif and the url to that file: http://www.fish.com/sea.gif is stored as a value in the database.

So what i need to know, is how do i get the file from the first directory, and then copy it over to the other directory.

05-01-2008, 08:00 PM

Or this:

Is probably what you need.