How to copy a file from one directory to another using PHP?

后端 未结 8 901
暗喜
暗喜 2020-11-28 06:38

Say I\'ve got a file test.php in foo directory as well as bar. How can I replace bar/test.php with foo/test.php

8条回答
  •  無奈伤痛
    2020-11-28 07:14

    copy will do this. Please check the php-manual. Simple Google search should answer your last two questions ;)

提交回复
热议问题