All Posts For: PHP

Feb 20 2006

Simple Debugging in PEAR::DB

One of the most important (and least loved) activities in a programmer’s life is debugging code. When debugging PHP, there are several strategies, ranging from strategic use of print_r to elaborate systems that send debugging information to specific debug tables in a database.

In this article, we look at a simple tip for finding errors in SQL code when using PEAR::DB.

If you would like to learn more about PHP PEAR modules, DB is just one of the modules covered in depth in the PHP 5 Bootcamp.

Dec 19 2005

Uploading Files with PHP

Content management is a nearly universal challenge when discussing any data-driven web site. As a developer, you can create your own system or use any one of a number of sophisticated open-source or third-party packages. Many times, however, you have a simple concept in mind and you want to create your own — especially if you have very specific needs that existing solutions cannot easily accommodate.…

Nov 17 2005

XML in PHP 5

Now that PHP 5 is becoming more and more prevalent over its predecessors, some really good books that cover PHP need revisions. Nowhere is this more true than with XML-related topics, where PHP 5 has a completely different way of working with XML — and, in fact, the mechanisms from PHP 4 will no longer work. In this article, we’ll be looking at one way to build and parse an XML tree using the new methods in PHP 5.