最近发现PHP错误日志体积巨大。仔细观察发现,这个文件以秒为单位在增加,说明PHP脚本中存在一些批量性的错误。
打开日志后发现多数错误为:
PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to u...
字符匹配示例^输入或行的起始部分。^T 匹配“This good earth”中的“T”,但不匹配“Uncle Tom's Cabin”中的“T”。$输入或行的结尾部分。h$ 匹配“teach”中的“h”,但是不匹配“teacher”中的“h”*0 个或多个前置字符...