Ignus_Fatuus
05-15-2003, 07:17 PM
Howdy!
I have a huge problem understanding how permissions for directories and files works when php-scripting and ftp:ing respectively. I realized I didn't get it when I made a script that created certain directories on my account. I got it to create the dirs with full permissions and yet I can't delete them using my ftp-program.
Another thing is that files I upload from a html-form is created in the directories correctly, but they take no heed to the directories real chmod, as I see it from a ftp program. I have managed to set their CHMOD via the script so their CHMOD LOOKS like I can change it in FTP but I can't. It might have something to do with that I share the account with a friend who also uploads files through ftp and script to the directory and sometimes HE can change files via ftp but not I, and vice versa, even though we use the same account.
All this confuses me tremendously and I havnt found a good place to read about how these things work. What I really need is a tip of what I havnt understood, or a tip where I can read about this on different places on the net, so far I havn't found anything that pinpoints this exact problem.
I have a huge problem understanding how permissions for directories and files works when php-scripting and ftp:ing respectively. I realized I didn't get it when I made a script that created certain directories on my account. I got it to create the dirs with full permissions and yet I can't delete them using my ftp-program.
Another thing is that files I upload from a html-form is created in the directories correctly, but they take no heed to the directories real chmod, as I see it from a ftp program. I have managed to set their CHMOD via the script so their CHMOD LOOKS like I can change it in FTP but I can't. It might have something to do with that I share the account with a friend who also uploads files through ftp and script to the directory and sometimes HE can change files via ftp but not I, and vice versa, even though we use the same account.
All this confuses me tremendously and I havnt found a good place to read about how these things work. What I really need is a tip of what I havnt understood, or a tip where I can read about this on different places on the net, so far I havn't found anything that pinpoints this exact problem.