Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php mkdir if not exists

<?php
if (!file_exists('path/to/directory')) {
  	/**
     * 0755 - Permission
     * true - recursive?
     */
    mkdir('path/to/directory', 0755, true);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #mkdir #exists
ADD COMMENT
Topic
Name
5+1 =