可以将PHP复制到新目录吗? [关闭]

just now I learnt how to create new directory in the server. So my question is it possible to copy a PHP file to the new directory created ?

Here's what i come up with

    mkdir('/home/user/public_html/ref/' . $cid . "_" . $gid, 0777);
   copy('/home/user/public_html/ref/index.php' ,'/home/user/public_html/ref/' . $cid . "_" . $gid);
查看全部
doumeitang572461
doumeitang572461
2014/04/16 08:20
  • php
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

1个回复