ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
## 1. is_file() is_file()函数判断文件是否存在,如果文件存在且为常规文件返回TRUE。 ~~~ if (is_file("filename")) { echo 'file is exist'; } else { echo 'file is not exist or is not regular file'; } ~~~ ## 2.header() ``` Header("Location: http://www.baidu.com"); exit; // 在每个重定向之后都叫上exit,避免发生错误后,继续这行。 // 其他用途: // 禁止页面在IE中缓存 // 实现文件下载 // 向浏览器发送Status标头 ``` ## 3.C() C()函数读取配置 ~~~ C('DEFAULT_LANG') ~~~