当前位置:网站首页>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');
}
边栏推荐
猜你喜欢
随机推荐
2022-08-09: What does the following go code output?A: No, it will panic; B: Yes, it can run correctly; C: Not sure, see the voting result.package main import (“fmt“ “syn
ArcMAP has a problem of -15 and cannot be accessed [Provide your license server administrator with the following information:Err-15]
Makefile missing separator. Stop.怎么解决「建议收藏」
A can make large data clustering method of 2000 times faster, don't poke
系统的安全和应用(不会点安全的东西你怎么睡得着?)
OpenStack-related commands that need to be recorded _ self-use
Real-time data warehouse practice of Baidu user product flow and batch integration
Cloud Migration Practice of Redis
高数_证明_曲率公式
代码随想录笔记_动态规划_70爬楼梯
海外邮件发送指南(二)
Import other custom namespaces in C#
Fragment的show和hide
学习日记8
Wirshark common operations and tcp three-way handshake process example analysis
LeetCode·每日一题·640.求解方程·模拟构造
跨域的五种解决方案
想通这点,治好 AI 打工人的精神内耗
malloc 函数详解
汉字检测和关键词检测