php常用函数

来源:互联网 发布:php实现网络爬虫 编辑:程序博客网 时间:2024/05/18 20:11

1. include,require,include_once,require_once

        包含文件

        include 常用在文件里头,包含文件不存在发出警告

        require  常 用在文件中,包含文件不存在发出致命错误

        后头加_once,文件只包含一次,防止重复包含函数,变量

2. filemtime 

     返回文件上次修改的时间(时间戳),否则false

Warning: filemtime(): stat failed for test.php in E:\webroot\t.php on line 9  检测文件路径是否正确