uploading image

From: Date: Wed, 03 Jan 2001 10:44:45 +0000
Subject: uploading image
Groups: php.general 
Request: Send a blank email to php-general+get-32477@lists.php.net to get a copy of this message
Question 1: My img directory has write attributes, and so does a sub-directory (where the picture needs to be uploaded).. but the pic still won't upload - why?? Question 2: Is there any way to print the error message (like in case of mysql errors).. ?? Here is the script I'm using: $gid = "whatever"; if ($img1_name != "") { if($img1_size > 20000) { echo "File size is bigger than 20kb!"; exit; } $imga = explode(".", $img1_name); $picname = $gid.$imga[1]; @copy("$img1", "/img/people/$picname"); } else { die("No Picture Was Uploaded"); }

« previous php.general (#32477) next »