title: creating directory using PHP
body: <p>I need to create a directory using php with write permission...currently am using the following code </p>
  
  <pre><code>$folder_name = $this-&gt;input-&gt;post('foldername', true);
  
  $path = '/home/temp/workspace/My_folder/documents/'.$folder_name;
  
  mkdir($path,'0222');
  </code></pre>
  
  <p>But this is not working... </p>