msg2040
V2EX  ›  PHP

godaddy 是怎么把 PHP 错误和警告消息记录到 error_log 文件的

  •  
  •   msg2040 · Oct 26, 2019 · 3700 views
    This topic created in 2400 days ago, the information mentioned may be changed or developed.

    环境: 本地:php 7.2 + apache ; gd: php 7.2 + apache

    配置: php.ini 中 desplay_error 和 error report 都打开了。

    测试: mysql_connect()

    结果: 本地:显示在浏览器页面:Call to undefined function mysql_connect() gd:输出到 error_log 文件

    请问怎么把错误,异常输出到文件里?

    谢谢。

    1 replies    2019-10-26 11:28:53 +08:00
    msg2040
        1
    msg2040  
    OP
       Oct 26, 2019
    找了半天,权限问题。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   915 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:12 · PVG 05:12 · LAX 14:12 · JFK 17:12
    ♥ Do have faith in what you're doing.