Posts tagged as php

Turning on PHP Debugging and Error Messages

2007-08-02 by Motoma, tagged as debugging, error messages, error reporting, errors, function, php, programming

Debugging messages are a powerful tool; however, many production systems (and test systems for that matter) have them disabled by default. If your PHP script is crashing horribly and you are not getting any runtime error messages, it is likely that this is the case for you.

You can initiate PHP debugging messages for the server by changing the display_errors and error_level settings in php.ini. Unfortunately, this is not the best situation in a production system.

Read more »

Creating a MySQL Data Abstraction Layer in PHP

2007-04-13 by Motoma, tagged as class, connection, dal, database, function, mysql, php, programming, query

The goal of this tutorial is to design a Data Abstraction Layer (DAL) in PHP, that will allow us to ignore the intricacies of MySQL and focus our attention on our Application Layer and Business Logic. Hopefully, by the end of this guide, you will have a working DAL and learn a little about PHP, MySQL, and Object-Oriented design in the process.

Read more »