ok, if I understand right, you are trying to copy a file from one dir to another. Try it like this:
$userfile = "/diffrent/folder/$userfile_name";//Directory where file to copy is
$name = "/folder/$userfile_name";//Directory to copy file to
copy($userfile,$name);
Allthough I havn't tested it, I think it should work.