Welcome, Guest
  • Author Topic: How to cut and paste folder ?  (Read 2420 times)

    cliffcc

    • Server what's that
    • *
    • Posts: 23
      • View Profile
    How to cut and paste folder ?
    « on: 02/04/11, 10:20 »


           I want to cut folder and its files from one location and then paste it in other location (by php code) ? How to write the code? Thanks?

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: How to cut and paste folder ?
    « Reply #1 on: 02/05/11, 07:08 »
    You need to copy your files using copy http://php.net/manual/en/function.copy.php then you should delete the original using unlink http://www.php.net/manual/en/function.unlink.php but be sure thet PHP have write/read access to the specific locations

    Jorge

    jacob11

    • Server what's that
    • *
    • Posts: 1
      • View Profile
    Re: How to cut and paste folder ?
    « Reply #2 on: 05/27/12, 17:46 »
    as in an interface using php or are you actually looking for the php code to copy, cut and create files in a directory? If your loooking for php code that allows you to copy and cut files then use the links below to read more about options relating to fopen. http://ca3.php.net/m...ction.fopen.php