함수 copy()


1 개요[ | ]

함수 copy()
  • 파일을 복사하는 함수

2 Go[ | ]

3 PHP[ | ]

PHP
Copy
copy('example.txt', 'example.txt.bak');
PHP
Copy
$file = 'example.txt';
$newfile = 'example.txt.bak';

if (!copy($file, $newfile)) {
    echo "failed to copy $file...\n";
}

4 같이 보기[ | ]