What mode should I use when I create a folder for uploaded files
<p>I have this directory structure:</p>

<pre><code>\htdocs
\htdocs\uploadfiles\
</code></pre>

<p>Now if a user's id is s001, then I should create a new folder for this user to store uploaded files.</p>

<pre><code>\htdocs
\htdocs\uploadfiles\
\htdocs\uploadfiles\s001\
</code></pre>

<p>Here are my questions:</p>

<pre><code>Q1&gt; What mode should I use for \htdocs\uploadfiles
Q2&gt; What mode should I use for \htdocs\uplaodfiles\s001\
</code></pre>

<p>Based on <code>http://www.elated.com/articles/understanding-permissions/</code>
The function I use to create the folder for the user is as follows:</p>

<pre><code>mkdir("/htdocs/uploadfiles/s001/", 0700);
</code></pre>

<p>That means only the owner of the s001 has access read/write/execute. But I don't know whether or not this is correct and practical.</p>
