title: PHP create directory name with forward slash
body: <p>I'm beginner in php. With a scenario i wanted to create directory with forward slash in name(09/01/2017). How can i resolve it? </p>
  
  <pre><code>$my_date = "09/01/2017"
  $new_path = "../Images/".$my_date;
  
  if(!file_exists($new_path)) {
      mkdir($new_path , 0777);
  }
  </code></pre>
  
  <p>EDIT: I'm using macos with php server in it. In macos it is possible to create folder with slashes. </p>