make directory inside htnl folder in apache server
<p>i am trying to use </p>

<p>mkdir command. i am trying to create a folder under /var/www/html/some-appication . i get permission error.  i need to create a folder in some-application folder . what steps do i need to take before doing it.</p>

<p>here is the command i am using</p>

<pre><code>  $structure = '/var/www/html/'.$patientId;
                        if(!is_dir($structure))
                        {
                        if (!mkdir($structure, 0777, true))
                         {
                            die('Failed to create folders...');
                         }
                        }
</code></pre>
