当前位置:网站首页>PHP judges whether the file has content, and if there is no content, copy another file to write

PHP judges whether the file has content, and if there is no content, copy another file to write

2022-08-10 13:39:00 Progress a little bit every day

// If config.php is empty or does not exist, copy the content of the dbc.php file and write itif(@filesize(__DIR__.'/data/config.php') == 0){@copy(__DIR__.'/data/dbc.php', __DIR__.'/data/config.php');}
原网站

版权声明
本文为[Progress a little bit every day]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/222/202208101302017885.html