note 38700 deleted from function.move-uploaded-file by nlopess

From: Date: Sat, 03 Jan 2004 17:41:27 +0000
Subject: note 38700 deleted from function.move-uploaded-file by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62873@lists.php.net to get a copy of this message
Note Submitter: giasens@hotmail.com ---- darn. tried whole day, then only found out './' to store into the sub folder. eg. your website: giasens.com and you want to save into giasens.com/store .. you can do as the following $uploadDIR = './store/'; $uploadFILE = $uploadDIR.$_FILES['fileUpload']['name']; if (move_uploaded_file ($_FILES['fileUpload']['tmp_name'], $uploadFILE)) echo '<B>upload successfully</B>'; else echo '<B>upload failed</B>'; } btw, i've tried using $_SERVER['DOCUMENT_ROOT'], but some free hosting server seems not supporting. end. hope it helps

« previous php.notes (#62873) next »