This will probably work (but don't quote me on that) -
PHP Code:
copy ($_FILES['userfile']['name'], "user/".$user_uname."/".$_FILES['userfile']['name'])
or die ("Could not copy");
Because variables are parsed in double quoted strings, this should work as well (but don't quote me if it does not) -
PHP Code:
copy ($_FILES['userfile']['name'], "user/$user_uname/".$_FILES['userfile']['name'])
or die ("Could not copy");
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???