PHP copy()

Jmnote (토론 | 기여)님의 2017년 6월 3일 (토) 20:52 판 (새 문서: ==개요== ;PHP copy() * 파일을 복사하는 PHP 함수 <source lang='php'> copy('example.txt', 'example.txt.bak'); </source> <source lang='php'> $file = 'example.txt'; $newfile =...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요

PHP copy()
  • 파일을 복사하는 PHP 함수
copy('example.txt', 'example.txt.bak');
$file = 'example.txt';
$newfile = 'example.txt.bak';

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

2 같이 보기

3 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}