Posts | ||
---|---|---|
File Uploading (PHP) | Locked | |
Thread Options | ||
|
Apr 2 2003 Anchor | |
Error:
Code Creating Error:
Folder: |
||
Apr 2 2003 Anchor | ||
|
||
|
Apr 2 2003 Anchor | |
try the function move_uploaded_file() instead of copy www.php.net/move_uploaded_file some servers disable the copy() function but from what I see that is not what is causing the error? echo this variable for us: images/up/$authuser->UID then we maybe able to see what is happening.. what dir is the script running from? -- Scott Reismanis |
||
|
Apr 3 2003 Anchor | |
i tried move_uploaded_file all I got was the same error, plus an extra bit about not being able to move an uploaded file.
gives
the directory is the root of the site (/web/tm) trying to find /web/tm/images/up/1 but even if I use the full path I get the same error. |
||
|
Apr 3 2003 Anchor | |
Ok thats where I thought you were going wrong.. you are meant to specify the file name in the destination... .i.e. instead of images/up/1 it should be images/up/file.exe or images/up/1/file.exe not just the folder -- Scott Reismanis |
||
|
Apr 3 2003 Anchor | |
it makes so much sense now! I know why i b0rked it, I use the CHM manual, which says this:
- Edited By jacksonj04 On Thu 3rd, Apr 2003 @ 3:08:29pm |
||
|
Apr 4 2003 Anchor | |
sweet -- Scott Reismanis |
Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.