是否有可能/容易将文件从一个位置(比如说在index.php
/mypage/homes/
)文件夹在另一个文件夹复制(例如,在friends
可能有pfox
,sam
,uni
)使用PHP? 那么文件index.php
会被复制到friends/pfox
,friends/uni
等等?将一个文件复制到文件夹中的所有文件夹?
是显而易见的,文件结构是这样:
update.php (The file you have to write)
mypage
|_homes
|_index.php
friends
|_pfox <--Copy index.php to here!
|_sam <--And here!
|_uni <--And here!
如果存在'/ friends/one/sub'目录会怎么样?你需要把它放到每个子文件夹吗? – 2014-11-22 15:20:29
,为什么需要你复制php文件?也许一些重定向到第一个会更好? – 2014-11-22 15:27:17