title: making a new folder using php code
body: <p>I just wanna ask, what is the code needed in my code in order this warning will not show </p>
  
  <blockquote>
    <p>Warning: mkdir() [function.mkdir]: File exists in
    C:\xampp\htdocs\php-robert\dir\dir.php</p>
  </blockquote>
  
  <p>also did my program is correct? what i want in my program is, if the folder is not exist, make a folder, if its existing just do nothing.. nothing to show, just nothing</p>
  
  <p><strong>dir.php</strong>
  </p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  $var = "MyFolder";
  $structure = "../../file/rep/$var";
  
  if (!mkdir($structure, 0700)) {
  
  }
  else
  {
  echo"folder created";
  }
  
  ?&gt;
  </code></pre>