• <tfoot id='hVmqh'></tfoot>

  • <legend id='hVmqh'><style id='hVmqh'><dir id='hVmqh'><q id='hVmqh'></q></dir></style></legend>

    <small id='hVmqh'></small><noframes id='hVmqh'>

  • <i id='hVmqh'><tr id='hVmqh'><dt id='hVmqh'><q id='hVmqh'><span id='hVmqh'><b id='hVmqh'><form id='hVmqh'><ins id='hVmqh'></ins><ul id='hVmqh'></ul><sub id='hVmqh'></sub></form><legend id='hVmqh'></legend><bdo id='hVmqh'><pre id='hVmqh'><center id='hVmqh'></center></pre></bdo></b><th id='hVmqh'></th></span></q></dt></tr></i><div id='hVmqh'><tfoot id='hVmqh'></tfoot><dl id='hVmqh'><fieldset id='hVmqh'></fieldset></dl></div>

      • <bdo id='hVmqh'></bdo><ul id='hVmqh'></ul>

        如何在 PHP 中写入错误日志文件

        How to write to error log file in PHP(如何在 PHP 中写入错误日志文件)
          <tbody id='4IJpy'></tbody>

              <bdo id='4IJpy'></bdo><ul id='4IJpy'></ul>
            • <small id='4IJpy'></small><noframes id='4IJpy'>

                1. <i id='4IJpy'><tr id='4IJpy'><dt id='4IJpy'><q id='4IJpy'><span id='4IJpy'><b id='4IJpy'><form id='4IJpy'><ins id='4IJpy'></ins><ul id='4IJpy'></ul><sub id='4IJpy'></sub></form><legend id='4IJpy'></legend><bdo id='4IJpy'><pre id='4IJpy'><center id='4IJpy'></center></pre></bdo></b><th id='4IJpy'></th></span></q></dt></tr></i><div id='4IJpy'><tfoot id='4IJpy'></tfoot><dl id='4IJpy'><fieldset id='4IJpy'></fieldset></dl></div>
                  <legend id='4IJpy'><style id='4IJpy'><dir id='4IJpy'><q id='4IJpy'></q></dir></style></legend>
                  <tfoot id='4IJpy'></tfoot>

                2. 本文介绍了如何在 PHP 中写入错误日志文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想在执行 PHP 代码时将消息写入错误日志文件.

                  I want to write a message to an error log file when executing PHP code.

                  我正在尝试使用 PHP error_log() 函数 Docs.

                  I am trying to use the PHP error_log() function Docs.

                  但它不适合我.

                  推荐答案

                  如果您不想更改 php.ini 文件中的任何内容,根据 PHP 文档,你可以这样做.

                  If you don't want to change anything in your php.ini file, according to PHP documentation, you can do this.

                  error_log("Error message
                  ", 3, "/mypath/php.log");
                  

                  第一个参数是要发送到日志的字符串.第二个参数 3 表示期望文件目的地.第三个参数是日志文件路径.

                  The first parameter is the string to be sent to the log. The second parameter 3 means expect a file destination. The third parameter is the log file path.

                  这篇关于如何在 PHP 中写入错误日志文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  • <small id='r9OtX'></small><noframes id='r9OtX'>

                      <bdo id='r9OtX'></bdo><ul id='r9OtX'></ul>
                      <tfoot id='r9OtX'></tfoot>
                      <legend id='r9OtX'><style id='r9OtX'><dir id='r9OtX'><q id='r9OtX'></q></dir></style></legend>

                        1. <i id='r9OtX'><tr id='r9OtX'><dt id='r9OtX'><q id='r9OtX'><span id='r9OtX'><b id='r9OtX'><form id='r9OtX'><ins id='r9OtX'></ins><ul id='r9OtX'></ul><sub id='r9OtX'></sub></form><legend id='r9OtX'></legend><bdo id='r9OtX'><pre id='r9OtX'><center id='r9OtX'></center></pre></bdo></b><th id='r9OtX'></th></span></q></dt></tr></i><div id='r9OtX'><tfoot id='r9OtX'></tfoot><dl id='r9OtX'><fieldset id='r9OtX'></fieldset></dl></div>
                            <tbody id='r9OtX'></tbody>