当前位置:网站首页>PHP output (print) log to TXT text
PHP output (print) log to TXT text
2022-06-25 05:58:00 【Wish you a dream come true】
/**
* Print log
* $msg Log contents
*/
function printLog($msg) {
if (!is_dir('log')){
mkdir('log',0777,true);
}
$path="log/".date('Y-m-d').".log";
file_put_contents($path, "【" . date('Y-m-d H:i:s') . "】" . $msg . "\r\n\r\n", FILE_APPEND);
}边栏推荐
- Getting started with Silverlight development 1
- Depth of binary tree
- Oracle SQL statement operand: rounding, rounding, differentiation and formatting
- Soft exam information system project manager_ Information system security management - Senior Information System Project Manager of soft test 026
- Soft exam information system project manager_ Management Science (Operations Research) 2--- senior information system project manager of soft test 034
- Ethernet
- You can't specify target table for update in from clause error in MySQL
- Only these four instructions are required to operate SQL data
- SAP ui5 beginner tutorial 25 - using proxy server to solve the cross domain problem of SAP ui5 application accessing remote OData service trial version
- MySQL tuning -- 02 -- slow query log
猜你喜欢

1.5.3 use tcpdump to observe ARP communication process

Trouble of setting table property to null

Soft exam information system project manager_ Information system security management - Senior Information System Project Manager of soft test 026
Trial version of routing history and routing back and history of SAP ui5

Only these four instructions are required to operate SQL data

HashSet implementation class
[interview with a large factory] meituan had two meetings. Was there a surprise in the end?
Kubevela v1.2 release: the graphical operation console velaux you want is finally here!

JMeter stress testing and agent recording

2.20 learning content
随机推荐
[golang] leetcode intermediate - Search rotation sort array & search two-dimensional matrix II
CST8227
C simple operation mongodb
The locally developed SAP ui5 application is deployed to the ABAP server to perform error analysis
The e-book "action guide for large organizations to further promote zero code application platform" was officially released!
手机开户一般哪个证券公司好?手机开户是安全么?
Depth of binary tree
SAP ui5 application development tutorial 32 - how to create a custom SAP ui5 control
Introduction to the main features of kyma when the cloud native application runs
Day16 (regular expression, enumeration)
SQL get current time
Unsupervised domain adaptation in semantic segmentation:a review unsupervised domain adaptation in semantic segmentation: a review
Timed thread pool
Only these four instructions are required to operate SQL data
[JS basic review] scope, this, closure
Day17 (set)
Day18 (set, generic, hash table, tree, stack and queue, graph, array and linked list)
[interview with a large factory] meituan had two meetings. Was there a surprise in the end?
钱堂教育的证券账户安全吗?靠谱吗?
Analysis of IM project framework