RE: [PHP] File upload

From: Date: Fri, 25 Jul 2003 11:22:42 +0000
Subject: RE: [PHP] File upload
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-156824@lists.php.net to get a copy of this message
>The upload_single.php script is just this: ><?php > $ime = $_FILES["thefile"]["name"]; > print ($ime); >?> >I just want for begining to print the name of file. >But It doesn't work. Do you get anything if you change "name" to "tmp_name" to beging with? If I'm not mistaken ,"name" isn't filled in with anything unless You've used move_uploaded_file() first. Also check if uploads are enabled in php.ini. Oh, and if you have permissions to write in The tmp directory as well. /Jonas --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.501 / Virus Database: 299 - Release Date: 2003-07-14

« previous php.general (#156824) next »