Here php @copy() and after @unlink() would be more useful even to catch any possible error rather than forking.