|
I originally asked this on Stack, thinking it's a basic-I-don't-understand-PHP question, but the answers I'm getting there indicate that it depends a lot on host specifics, so: I'm trying to use this Dagon Design PHP form to help a local non-profit publication enable their readers to submit photos. I've got the "mailer" part working -- the notifications work fine -- but the "saving a file to a folder" part isn't functioning. On the form page, the author says "the directory must have write permissions," but I'm not sure "who" is writing to that folder -- is this PHP script considered "Owner" when it saves something on my site? Or do I need to allow save permissions for Owner, Group and Others? I'm not sure why the script isn't saving the photos, but this seems like a good place to start. The page I'm clumsily trying to build is here, if that helps. |
|
On our system, your PHP processes run as your own user, so you don't need to give write permission to group or other. If you believe that the problem you're having is related to permissions, then try using 711 or 755 on the directory to which you're trying to upload files, and ensure that you have ownership of that directory. |