Copy files from one dir to another dir ?

Discussion in 'PHP' started by KingCobra, Aug 20, 2009.

  1. #1
    How can I copy some files from one dir to another dir by PHP?

    Suppose, my dir structure -

    From dir: /files/video/(some files here)

    To dir: /files/new/
     
    KingCobra, Aug 20, 2009 IP
  2. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #2
    premiumscripts, Aug 20, 2009 IP
  3. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #3
    copy('files/video/filename.ext','files/new/filename.ext');
     
    crivion, Aug 20, 2009 IP