This code uploads the file to the path specified AND in the same directory as the script. I dont want it in the directory with the script, just the file path specified. Let me know whats up with it. Thanks.
Code:copy($HTTP_POST_FILES['avatar'] ['tmp_name'], $HTTP_POST_FILES['avatar'] ['name']); copy("$avatar", "/var/www/html/forum/avatars/$username.gif");