title: Warning: mkdir(): Permission denied in php
body: <p>heey everyone i'm trying to create a folder for every user try to sign into my php app and i get that message <a href="https://i.stack.imgur.com/4NVx9.jpg" rel="nofollow noreferrer">here</a></p>
  
  <p>and my php code is here</p>
  
  <pre><code>function createChatFolder($email) {
      if(!file_exists('../../conversation'.$email)){
          if(mkdir('../../conversation'.$email , 0777 ,true)){
              $myfile = fopen('/opt/lampp/htdocs/facebookMV/web/conversation/'.$email.'/status.xml', 'w+');
              if($myfile){
                  $txt = '&lt;?xml version="1.0"  encoding="utf-8"   ?&gt;'.PHP_EOL.'&lt;status&gt;1&lt;/status&gt;';
                  fwrite($myfile, $txt);
                  fclose($myfile);
              }else{
                  echo 'there was an error while creating the status file';
              }
          }else{ 
              echo 'there was an error while creating thee '.$email.' folder ';
          }
      }
  }
  </code></pre>
  
  <p>can any one tell me from where the problem is coming from 
  NB : i'm using UBUNTU 14.04 and here is the mode of conversation folder </p>
  
  <pre><code>drwxr-xr-x 7 daemon daemon 4096 نوف 25 00:32 conversation
  </code></pre>