Tag Archives: php
Simple Audit Logging of Table Changes Using Triggers in MySQL

Simple Audit Logging of Table Changes Using Triggers in MySQL

Tracking changes to database data can be used to provide a simple history of the data over time or an audit log of who changed what in order to increase the accountability of system users. Logging can be done in application layer code in an easy manner if you are using a database abstraction layer […]

Comments ( 1 )
Pear PHP

Getting pyrus.phar to work on a Mac (OS 10.5+)

Problem After needing to use the PEAR::HTTP_Request class to build an auto-login script I tried to use the PEAR install command-line syntax and ran into the usual difficulties with where was it going to install the downloaded files, were the channels up-to-date, etc.  So on the class page I noticed a new installer that was […]

Comments ( 0 )
Programmatically Creating PDF files from HTML using PHP

Programmatically Creating PDF files from HTML using PHP

I don’t truly like Adobe PDF files, their negative attributes such as being slow to open, clumsy to edit if-at-all, inadequate and in-the-way security features, outweigh their positive attributes like being formatted, cross-platform, and transmittable. Since they are the de-facto standard for formatted documents they are in-demand and remain useful.   It’s often the case with […]

Comments ( 1 )

Silent PDF Printing from a PHP-based Web Application

A client asked me if it was possible to have the PDF’s generated by the PHP-based internal web application I’ve been working on to print to the user’s default printer. The user’s use both networked and directly attached printers so implementing something that used *NIX’s lpr command to send the PDF to a network printer […]

Comments ( 0 )