note 38700 added to function.move-uploaded-file
| From: | giasens at hotmail dot com | Date: | Sat, 03 Jan 2004 17:37:43 +0000 |
| Subject: | note 38700 added to function.move-uploaded-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-62872@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/function.move-uploaded-file.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38700
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38700&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38700&report=yes
Search -- http://master.php.net/manage/user-notes.php