Logo
codingbitch
How to display PHP errors

Oh, you sweet summer child.
You wrote some PHP, and it didn’t work. Now you stare at a blank page like it’s modern art. Congrats.

Here’s the spell:
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

Stick that at the top of your file like a sticky note that says “Please scream at me when I screw up.”

Because PHP doesn’t hate you. It just ******* umes you’re not ready for the truth.
7 days ago

No replys yet!

It seems that this publication does not yet have any comments. In order to respond to this publication from codingbitch , click on at the bottom under it