title: PHP mkdir(); not working
body: <p>I've been trying the function Mkdir that will be usefull in the project i'm working on. I've tried the simplest code possible but I can't get it to create the folder I want. </p>
  
  <p>I've tried to changes my folder permissions, but that doesn't change (Nor 755 or 777) and the code keeps returning a fail. </p>
  
  <p>Please have a look at my code : </p>
  
  <pre><code>&lt;?php 
  if(!mkdir($_SERVER['DOCUMENT_ROOT'].'/uploads/2017', 0777, true))
      {
          echo("echec");
      }
  chmod($_SERVER['DOCUMENT_ROOT'].'/uploads/2017', 0777);
  ?&gt;
  </code></pre>
  
  <p>The parent folder is "admin" and it permissions are set to 755. </p>
  
  <p>Do you have any clue why this isn't working ?</p>
  
  <p>EDIT : I remade it and it worked, no clue what the problem was. </p>