2

Where can I find the built-in PHP server logs on Windows 10, knowing that my PHP installation is in c:\php and that I am running my application from NetBeans? Are these logs always created? This question follows another question .

I have seen this SO question, but there is no c:\php\logs\ on my laptop.

Update

I have set the following in my php.ini:

log_errors = On
error_log = "c:\php\logs\php_errors.log"

I have added the following line in my layout.phtml:

    <?php
    echo ini_get('error_log');
    syslog ( LOG_ERR , "Poupoupidou" );
    ?>

This displays c:\php\logs\php_errors.log, but I do not see the log file in this directory.

Update II

Some logs have been generated in c:\php\logs\ for a separate issue.

Community
  • 1
  • 1
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453

1 Answers1

2

You can find that out using:

echo ini_get('error_log');
hek2mgl
  • 152,036
  • 28
  • 249
  • 266