title: mkdir command doesn't work using exec() in PHP
body: <p>This is strange. Although basic commands such as ls, date, whoami are working. I cant seem to make a directory using the mkdir command using exec</p>
  
  <pre><code>$output=exec("mkdir helloworld");
  </code></pre>
  
  <p>Also it is worth asking, if such an error is occurring. is there any parameter or i can use to capture this error. Like the example below?</p>
  
  <pre><code>exec("mkdir helloworld 2&gt;&amp;1",$output,$return_val)
  if($return_val !== 0) 
  echo "there was an error"
  </code></pre>