Ben bu dizin yapısı vardır:
\htdocs
\htdocs\uploadfiles\
Bir kullanıcının kimliği S001 Şimdi eğer, o zaman ben Yüklenen dosyaları saklamak için bu kullanıcı için yeni bir klasör oluşturmanız gerekir.
\htdocs
\htdocs\uploadfiles\
\htdocs\uploadfiles\s001\
İşte benim sorular şunlardır:
Q1> What mode should I use for \htdocs\uploadfiles
Q2> What mode should I use for \htdocs\uplaodfiles\s001\
Based on http://www.elated.com/articles/understanding-permissions/
The function I use to create the folder for the user is as follows:
mkdir("/htdocs/uploadfiles/s001/", 0700);
Yani S001 sadece sahibi okuma / yazma / yürütmek erişimi anlamına gelir. Ama bu doğru ve pratik olup olmadığını bilmiyoruz.