Copy a file from source to destination. If unique == true, then if the destination exists, it will be renamed by appending an increamenting counting number.
Tags:
return:
the new copied filename, else error if anything goes bad.
Parameters:
string
$source
where the file is from, full path to the files required
string
$destination_file
name of the new file, just the filename
string
$destination_dir
where the files, just the destination dir, e.g., /www/html/gallery/