Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php check folder exists and create

if (!file_exists('path/to/directory')) {
    mkdir('path/to/directory', 0777, true);
}
 
PREVIOUS NEXT
Tagged: #php #check #folder #exists #create
ADD COMMENT
Topic
Name
7+6 =