PHP copy() 函数
PHP 教程
· 2019-01-24 18:12:56
定义和用法
copy() 函数复制文件。
该函数如果成功则返回 TRUE,如果失败则返回 FALSE。
语法
copy(file,to_file)
| 参数 | 描述 |
|---|---|
| file | 必需。规定要复制的文件。 |
| to_file | 必需。规定复制文件的目的地。 |
提示和注释
注释:如果目标文件已存在,将会被覆盖。
实例
<?php
echo copy("source.txt","target.txt");
?>
上面的代码将输出:
1
点击查看所有 PHP 教程 文章: https://www.codercto.com/courses/l/5.html
Writing Apache Modules with Perl and C
Lincoln Stein、Doug MacEachern / O'Reilly Media, Inc. / 1999-03 / USD 39.95
Apache is the most popular Web server on the Internet because it is free, reliable, and extensible. The availability of the source code and the modular design of Apache makes it possible to extend Web......一起来看看 《Writing Apache Modules with Perl and C》 这本书的介绍吧!