You know that copying doesn't work, but you don't know why.
With if (!@copy($sfid, $dfid)), copy function errors are hidden.
It would be a good idea to try removing the @ symbol: if (!copy($sfid, $dfid)) and look at the error messages in php_error.log.
It may also be that instructions in the .htaccess file prevent copying.
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons