This site is in a growth phase right now. To the moon!

How to Display PHP Errors

Use the following settings to enable error reporting in PHP:

ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
Ad Space

 Or, to log errors to a specific, use the following:

ini_set("error_log", "/tmp/php-error.log");

Are PHP errors driving you up the wall? You've come to the right place. This site is dedicated to providing developers like you with these 3 lines.

Whether you're dealing with common warnings or rare fatal errors, of using php 4,5,7,8... hopefully you are using version 8.

Ad Space

 

About

This site is dedicated to helping developers debug their PHP errors. Why have this site?

'Cause I could never find these 3 lines of code I needed all the time. enjoy.

Ad Space

Books

Here's some of the best selling books on Amazon right now, which if you purchase will support this site.

PHP Crash Course Book Cover
PHP Crash Course
The Complete, Modern, Hands-On Guide.
Buy on Amazon
Front-End Back-End Development Book Cover
Front-End Back-End Development with HTML, CSS, JavaScript, jQuery, PHP, and MySQL
This three-book set combines the popular titles:
HTML & CSS: Design and Build Web Sites (2011)
JavaScript & jQuery: Interactive Front-End Development (2014)
PHP & MySQL: Server-side Web Development (2022)
Buy on Amazon
PHP Cookbook Book Cover
PHP Cookbook
Modern Code Solutions for Professional Developers
Buy on Amazon
Test-Driven Development with PHP 8 Book Cover
Test-Driven Development with PHP 8
Build extensible, reliable, and maintainable enterprise-level applications using TDD and BDD with PHP
Buy on Amazon
Clean Code in PHP Book Cover
Clean Code in PHP
Expert tips and best practices to write beautiful, human-friendly, and maintainable PHP
Buy on Amazon
PHP 8 Objects, Patterns, and Practice Book Cover
PHP 8 Objects, Patterns, and Practice
Mastering OO Enhancements, Design Patterns, and Essential Development Tools
Buy on Amazon
Laravel: Up & Running
Laravel: Up & Running
A Framework for Building Modern PHP Apps
Buy on Amazon