Вот это показывать ошибки на экран:
| Цитата | ; Print out errors (as a part of the output). For production web sites, ; you're strongly encouraged to turn this feature off, and use error logging ; instead (see below). Keeping display_errors enabled on a production web site ; may reveal security information to end users, such as file paths on your Web ; server, your database schema or other information. display_errors = On
|
А вот это писать в лог:
| Цитата | ; Log errors into a log file (server-specific log, stderr, or error_log (below)) ; As stated above, you're strongly advised to use error logging in place of ; error displaying on production web sites. log_errors = On
; Log errors to specified file. error_log = D:/web_host/php_errors.txt
|
И все это находится в php.ini |