note 71440 added to features.file-upload
| From: | frustrated dot user at fake dot com | Date: | Wed, 29 Nov 2006 05:11:56 +0000 |
| Subject: | note 71440 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-120151@lists.php.net to get a copy of this message | ||
Before you even bother doing anything, verify the filesystem your permanent upload directory will
reside on. Use NTFS before you even start! (Assuming you're on Windows.)
Unfortunately, because I've been preparing to switch to Linux on this machine, I thought it
would be a *great* idea to use FAT32 so I could access my websites from both Windows and Linux (this
is not a production box, but where I am creating a CMS).
This was a *bad* idea...since the filesystem is not NTFS, now the only permissions I can set are
*share* permissions.
I *guess* that *share* permissions are not used through the webserver, because even though the user
Apache runs as is one of the users given permissions "Read" and "Modify" share
permissions, the file cannot be permanently saved via neither move_uploaded_file() nor copy().
I verified this by using conditionals with !is_readable() and !is_writable() to echo specific
messages.
So, now I have to back up everything I've done, reformat that partition as NTFS, copy
everything over again, and set all the permissions, including on databases that I am using with
other pages. *(sigh)*
----
Server IP: 64.71.164.2
Probable Submitter: 71.83.58.226
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.php
Edit -- https://master.php.net/note/edit/71440
Del: integrated -- https://master.php.net/note/delete/71440/integrated
Del: useless -- https://master.php.net/note/delete/71440/useless
Del: bad code -- https://master.php.net/note/delete/71440/bad+code
Del: spam -- https://master.php.net/note/delete/71440/spam
Del: non-english -- https://master.php.net/note/delete/71440/non-english
Del: in docs -- https://master.php.net/note/delete/71440/in+docs
Del: other reasons-- https://master.php.net/note/delete/71440
Reject -- https://master.php.net/note/reject/71440
Search -- https://master.php.net/manage/user-notes.php