title: mkdir() permission denied codeigniter
body: <p>I am trying to create a directory with PHP mkdir function but I get an error as follows: 
  Warning: mkdir(): Permission denied in /Applications/XAMPP/xamppfiles/htdocs/tiki-id/system/core/Log.php on line 122</p>
  
  <p>this is the line 122:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>file_exists($this-&gt;_log_path) OR mkdir($this-&gt;_log_path, 0777, TRUE);</code></pre>
  </div>
  </div>
  </p>
  
  <p>I put my temp_sess folder on 'Mac/XAMPP/xamppfiles/htdocs/tiki-id/temp_sess'</p>
  
  <p>and my config.php :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>$config['sess_save_path'] = './temp_sess/';</code></pre>
  </div>
  </div>
  </p>
  
  <p>my temp_sess folder:</p>
  
  <p><a href="https://i.stack.imgur.com/n787M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n787M.png" alt="temp_sess info folder"></a></p>
  
  <p>What did I do wrong?</p>
  
  <p>I'm on mac, web server xampp..</p>