View Full Version : file upload

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");

03-22-2004, 02:47 AM
not knowing what $avatar is this is a guess.

$HTTP_POST_FILES['avatar'] ['tmp_name'],

03-22-2004, 03:03 PM
$avatar is on the previous page before the one with the upload code; it is the name of a file input type.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum