PHP

Tips & Tricks
2 Comments

Below are a few PHP tips and tricks I have found very useful, and hope to share it with you guys.

1. Code with error reporting

This will save you an insane amount of time, all by simply adding a two line snippet of code. Essentially, it’s just forcing the server to print PHP errors so that if anything does fail, you can identify the cause. Just throw the snippet below into the top of any file.

1
2
error_reporting

show me the rest