GetID3 analyze() function new file size parameter

You can now read ID3 (media file headers) information from mp3 and other media files using GetID3 library without having the entire media file present. The new 2nd parameter to the analyze() member function allows you to detect play time duration with only a small portion of the file present. Years ago I added this […]

The Web is getting Sloppy, Why is it a Problem and Who’s Fault is it?

Lately I’ve observed a few web sites that have been “re-launched”. Web sites vary from a small time blogger, a popular car forum, a very large automotive vendor and even Google! First, let me define what I mean by “The web is getting sloppy”. Essentially the Internet is organized by domain names, for example […]

Integrating PHP Command Line Scripts with Existing Web Projects

After reading the post on Johan Mares site about the PHP command line interface, I thought I would indulge in the details how I’ve been using the PHP cli for some of my web based applications. First, some of my web apps have multiple configuration files which are determined by the $_SERVER[‘HTTP_HOST’] value. If (stricmp( […]

PHP Function HTTP Status Code Value as String

I’ve been working with the php CURL library and found that it would not return an error if the server returned a 500 error. After looking up 3 different status codes that I wasn’t very familiar with, I created the following function. It is very complete and includes additional WebDAV, Apache and Microsoft codes. function […]

CW10 – May 22, 2008 – Zend PHP 5 Certification Study Guide and Open Flash Charts

Angelo discusses the Zend PHP 5 Certification Study Guide 2nd edition and explains how to implement Open Flash Charts into your PHP project. Don’t forget to E-mail comments and suggestions to compiledweekly AT Links: Zend PHP 5 Certification Study Guide at Amazon Open Flash Charts Download This Episode

Columbus PHP Meetup tonight – The Art of SQL Tuning for MySQL

If you’ve been following my Twitter (@AngeloMandato) lately, you may have herd me mention previous Columbus PHP Meetups. These meetups are great for meeting fellow PHP programmers in the Columbus area and a great way to learn about different libraries, techniques and frameworks that are available. Columbus PHP Meetup web site: Tonights meetup topic […]

Line-bar graphs and Pie charts for your web application

If you ever needed to display reports of information in a visual way in your web application then you’ll appreciate Open Flash Chart. This flash based charting library has everything. From line graphs, bar graphs, pie charts, mixed line/bar graphs and more with the ability to add hovers, custom colors, sizes and web links. The […]

PHP code to format Program Name for 1-click zune subscription

I added the Zune 1-click subscription option to the RawVoice properties at and I ran into an issue where show titles that contain special characters, such as quotes, would break the rest of the web page. Below is the solution I implemented for the problem. Fix <a href=”< ?php $title_for_zune = ereg_replace(‘[^A-Za-z0-9 ]’, […]

Source for Lighttpd mod_redirect rewrite module to use status code 302

Lighttpd web server, also known as Lighty, is an excellent web server and has potential to replace Apache completely.  I am slowly migrating web sites that use feature specific settings in Apache to use Lighty.  A few months ago I ran into a problem with Lighty’s ModRewrite alternative for rewriting URLs.  Lighty uses two separate […]

Lighty Web Server Fast with static pages

Three months ago I started looking at an alternative web server to serve URL redirects.  The need arose when I found that Apache web server would consume a lot of system memory when testing simulated spikes to the server.  Apache could handle between 1,200 to 1,700 requests a second.  Though the number of requests per […]