Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jan 2007
    Posts
    217
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Moving a file from one directory to another

    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:

    images/art_uploaded_temp/

    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

    images/art_uploaded/

    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.

  • #2
    New Coder
    Join Date
    Jan 2007
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •