Answers for "write down a php script to create a file by name "test.txt" if it does not exist."

PHP
0

laravel create new file if not exists

if (!file_exists('somefile.txt')) {
    touch('somefile.txt', strtotime('-1 days'));
}
Posted by: Guest on August-13-2020

Code answers related to "write down a php script to create a file by name "test.txt" if it does not exist."

Browse Popular Code Answers by Language