DsgnrsTLZAdmin
03-20-2004, 10:06 PM
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.
copy($HTTP_POST_FILES['avatar'] ['tmp_name'],
$HTTP_POST_FILES['avatar'] ['name']);
copy("$avatar", "/var/www/html/forum/avatars/$username.gif");
copy($HTTP_POST_FILES['avatar'] ['tmp_name'],
$HTTP_POST_FILES['avatar'] ['name']);
copy("$avatar", "/var/www/html/forum/avatars/$username.gif");