hashExists($hash)) { copy($source,$altname); return true; } return false; } function deleteFile($hash) { $altname=ALT_FOLDER.DS.$hash; if(file_exists($altname)) { unlink($altname); } } }