title: PHP create multiple directories
body: <p>Let's say, in PHP, I am trying to put an image in a specific directory that is on root.</p>
  
  <p>I want to put it on <code>/images/afc/esp/stadium/</code> directory. Images folder, Federation folder, Country ISO3 folder, content folder.</p>
  
  <pre><code>$folder_full = "images/".$getFed."/".$country_folder."/stadiums";
  if (!is_dir($folder_full)) mkdir($folder_full);
  </code></pre>
  
  <p>Before you ask, yes <code>$getFed</code> and <code>$country_folder</code> work and output text. So, then I get this error: <code>Warning: mkdir(): No such file or directory</code></p>
  
  <p>I don't get it?</p>