当前位置:网站首页>PHP 判断文件是否有内容,没有内容则复制另一个文件写入
PHP 判断文件是否有内容,没有内容则复制另一个文件写入
2022-08-10 13:02:00 【每天都进步一点点】
// 如果config.php为空或不存在,则复制dbc.php文件内容写入
if(@filesize(__DIR__.'/data/config.php') == 0){
@copy(__DIR__.'/data/dbc.php', __DIR__.'/data/config.php');
}
边栏推荐
- 九宫格抽奖动效
- Reversing words in a string in LeetCode
- Jiugongge lottery animation
- 交换机的基础知识
- rpn:def concat_box_prediction_layers
- WebView的优化与常见问题解决方案
- 需要被记录的OpenStack相关的命令_自己用
- 递归递推之Fighting_小银考呀考不过四级
- 海外邮件发送指南(二)
- 2022 Recruitment Notice for Academician Zhao Guoping Group of Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences
猜你喜欢
随机推荐
日志@Slf4j介绍使用及配置等级
Keithley DMM7510 accurate measurement of ultra-low power consumption equipment all kinds of operation mode power consumption
Shell:数组
【ECCV 2022|百万奖金】PSG大赛:追求“最全面”的场景理解
神经网络可视化有3D版本了,美到沦陷!(已开源)
Jiugongge lottery animation
进程和计划任务管理
Codeforces Round #276 (Div. 1) B. Maximum Value
R语言使用gt包和gtExtras包优雅地、漂亮地显示表格数据:gtExtras包的gt_highlight_rows函数高亮(highlight)表格中特定的数据行、配置高亮行的特定数据列数据加粗
Drive IT Modernization with Low Code
Loudi Cosmetics Laboratory Construction Planning Concept
学习日记8
11 + chrome advanced debugging skills, learn to direct efficiency increases by 666%
Import other custom namespaces in C#
YTU 2295: KMP模式匹配 一(串)
交换机的基础知识
YTU 2295: KMP pattern match one (string)
广东10个项目入选工信部2021年物联网示范项目名单
Detailed explanation of es6-promise object
山水的高度