Copy file from placeholder folder to archive folder

Copy file from placeholder folder to archive folder

/* Copy the file from the Placeholder folder to Archived folder and remove the file from placeholder file */
function copyPlaceholderFileToArchived($file, $path , $destination) {
    if (copy($path.$file, $destination.$file)) {
        unlink($path.$file);
    }
    
}

Share this Tutorial