Copy a file in PHP

Description

The following code shows how to copy a file.

Example


  
<?php
    echo copy("test.txt","test_target.txt");
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    File »




Directory
DirectoryIterator
Drive
File
File Permission
File Read Save
FileSystemIterator
Path
Zip