copy
Copy the file
copy()
function copies the file.
<?php echo copy ( "source.txt" , "target.txt" ) ; ?>
Output:
1
copy ( source , destination )
parameter | describe |
---|---|
source | Required. Specifies the files to be copied. |
destination | Required. Specify the destination for copying the file. |
Copy the file from source to destination . Return TRUE if successful, otherwise return FALSE.