Home > Backend Development > PHP Tutorial > The copy command cannot copy the file name of .htaccess class?

The copy command cannot copy the file name of .htaccess class?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-08-23 09:17:49
Original
1512 people have browsed it

copy命令无法复制 .htaccess 此类的文件名? 而从一个 copy("a.htaccess",".htaccess")文件则可以,有没有解决的方法的?

回复内容:

copy命令无法复制 .htaccess 此类的文件名? 而从一个 copy("a.htaccess",".htaccess")文件则可以,有没有解决的方法的?

不知题主是怎么复制的, 下面这是没问题得

$file = 'F:\\Zend\\git\\test\\.htaccess';

$dest = 'F:\\Zend\\git\\.htaccess';

if (copy($file, $dest)) {
    echo "success\r\n";
    
} else {

    echo "Error\r\n";
}
Copy after login
Related labels:
php
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template