Current Location: Home> Function Categories> copy

copy

Copy the file
Name:copy
Category:File system
Programming Language:php
One-line Description:Copy the file.

Definition and usage

copy() function copies the file.

Example

 <?php
echo copy ( "source.txt" , "target.txt" ) ;
?>

Output:

 1

grammar

 copy ( source , destination )
parameter describe
source Required. Specifies the files to be copied.
destination Required. Specify the destination for copying the file.

illustrate

Copy the file from source to destination . Return TRUE if successful, otherwise return FALSE.

Similar Functions
  • Change file owner chown

    chown

    Changefileowner
  • Read a line from the file pointer and parse the CSV field fgetcsv

    fgetcsv

    Readalinefromthefile
  • Returns the normalized absolute path name realpath

    realpath

    Returnsthenormalized
  • Returns the location where the file pointer is read/write ftell

    ftell

    Returnsthelocationwh
  • Delete files unlink

    unlink

    Deletefiles
  • Determine whether the given file name is a directory is_dir

    is_dir

    Determinewhethertheg
  • Provide information about the document stat

    stat

    Provideinformationab
  • Parsing configuration strings parse_ini_string

    parse_ini_string

    Parsingconfiguration
Popular Articles