Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel create new file if not exists

if (!file_exists('somefile.txt')) {
    touch('somefile.txt', strtotime('-1 days'));
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #create #file #exists
ADD COMMENT
Topic
Name
1+3 =