Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php check folder exists and create

if (!file_exists('path/to/directory')) {
    mkdir('path/to/directory', 0777, true);
}
Comment

PREVIOUS NEXT
Code Example
Php :: magento 2 create admin user 
Php :: php console log var_dump 
Php :: wp-config change url wp-config 
Php :: tinker lost colors 
Php :: php start session if not started 
Php :: enable error logging php 
Php :: laravel query not null 
Php :: env clear cache laravel 
Php :: disable laravel debugbar 
Php :: get child theme path in wordpress 
Php :: migrate specific table laravel 
Php :: config clear laravel 
Php :: php get current domain 
Php :: print query statement in laravel 
Php :: wordpress error log 
Php :: php store object in session 
Php :: php check method of http request 
Php :: laravel generate env 
Php :: migrate single file in laravel 
Php :: debug graphql wordpress 
Php :: macos install php 7.4 
Php :: pdo transaction 
Php :: php how to get am pm from a datetime 
Php :: debug wordpress 
Php :: php get latest file in directory 
Php :: get cart page url in woocommerce 
Php :: ubuntu 20.04 how to install npm 
Php :: avoid php self exploit 
Php :: laravel make trait command 
Php :: php calculate date difference 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =