FAQ: PHP Error Log

Q 1. How do I view PHP error logs?

Ans: Using PHP info <?php phpinfo(); ?> function to get path of error log file and check the logs on file.

Q 2. How do I fix PHP errors?

Ans: To fix the PHP error, we have read the error message carefully than we change the source code according to it.

Q 3. How do you write an error log?


ini_set("log_errors", 1);

//set path where error log file will save
ini_set("error_log", "path-to-store/php-error.log");

//used to store error data
error_log( "Hello, errors!" );

My name is Bikash Kr. Panda. I own and operate PHPCODER.TECH, my native place in Odisha. I am a Web Programmer by profession and working on more than 50 projects to date. My passion is working on the web-based project using PHP and relate to all CMS and frameworks which is based on PHP.
Posts created 175

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top
mariobet - supertotobet - escort -


- milanobet giriş - gizabet giriş -
perabet giriş
- betkanyon giriş -

jojobet giriş

We are now accepting guest posting and creation of back-links.
This is default text for notification bar