how to create a directory in php
<p>I am trying to create a directory on my server. Here is my code for one directory...</p>

<pre><code>$path = "UserIds/";
$di = $path . $userid;

mkdir($di,0777);
</code></pre>

<p>It's work fine but here I need another directory.  Here is my code... </p>

<pre><code>$dir="$di./".date("Y/m/d");

mkdir($dir,0777); 
</code></pre>

<p>This does not make the directory. What is wrong?</p>
