How to enable error display and logging in php.ini?

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 5
Joined: Thu Apr 19, 2018 2:48 am

Mon Aug 26, 2019 11:29 pm

I have been trying to search for a way to enable error log in PHP without php.ini file. I don't have access to the file since I am only working on a specific module for the website. To get full access of the server, I will have to explain in detail to the client, which will be a pain for me. Is there anyway to do it?
User avatar
php-forum GURU
php-forum GURU
Posts: 924
Joined: Mon Feb 22, 2016 5:52 pm

Tue Aug 27, 2019 8:05 am

The problem is when setting the error log in the script is if there is a fatal error, nothing will be logged as the script will exit without executing the call to log errors.

A possible way around this is to set up your own error handling or set up a testing server so that you can control the ini file.
Post Reply