Find out the error_log's path

后端 未结 5 508
旧时难觅i
旧时难觅i 2020-12-07 01:19

I there

i have this domain.com ponted to /home/username/public_html/domain.com

I added this lines to the .htaccess



        
5条回答
  •  被撕碎了的回忆
    2020-12-07 01:29

    To only get the path where PHP stores its logs, use:

    pathinfo(ini_get('error_log'),PATHINFO_DIRNAME);
    

    Which should return something like this (on localhost):

    /Applications/MAMP/logs
    

提交回复
热议问题