Old PHPGuru articles/code

PHP Application Structure

Read about a loose structure for PHP applications - in terms of directory and file layout. It's not strict and can easily be extended.

Read article

AutoComplete using Javascript and CSS

An autocomplete widget for (typically) your form text inputs. It can aid usability a little by allowing you to present a list of options to your users.

Read article

PHP caching class

A caching library to facilitate caching of script output and data structures within the script. There are two scripts included in the zip file to perform cleansing of stale content from the storage area. One in shell script, one in PHP.

Read article

FileIterator class

This article extolls the virtues of PHP5 iterators and gives you an example that iterates over the lines in a file.

Read article

A JavaScript Modal Dialog

This is an article about a ModalDialog. If you want a ModalDialog though you' recommended to use the one in RGraph.

Read article

Unserialize PHP with Javascript

This is a library that afacilitates the decoding of PHPs serialize() format using JavaScript.

Read article

A PorterStemmer PHP class

This is a PHP class that implrments the Martin Porter Stemming algorithm

Read article

Rmail for PHP: How to send email with attachments and/or HTML (MIME) emails with PHP

The Rmail class is a PHP class useful for sending email. It can send HTML emails with or without attachments, embedded text parts and images.

Read article

SQLite.NET wrapper

A C# wrapper around the SQLite file based database

Read article

MySQL Table Editor: Allows you to safely manage your MySQL data

The MySQL TableEditor is a table management interface for MySQL. Its not a database administration tool like PHPMyAdmin.

Read article

Table Editor Comparison

A article doing a comparison of 3 table editing tools for PHP/MySQL

Read article

TextualNumber class

A PHP class that generates word representations of numbers.

Read article

A PHP TextualNumber class

An article that goes talks more about the TextualNumber PHP code

Read article

User-agent strings

User agent strings aren't the most accessible of things - so here's a potential alternative (that doesn't really have a hope in hell of becoming reality).

Read article

Linux file attributes

Linux file attributes (as opposed to permissions) can be used for a variety of things. This article shows you what they are.

Read article

Auth_SASL class

The Auth_SASL PEAR class (PHP) can be used to generate various authentication scheme reponses.

Read article

Browser Detection

A PHP version of the Ultimate Javascript Client Side Detector.

Read article

A HTML5 canvas example: CanvasBalls!

An interactive example of canvas with some balls bouncing around. It allows you to add more balls if you want.

Read article

HTML5 Canvas introduction

An introduction to the HTML5 canvas element. The RGraph HTML5 canvas reference is a complete reference if thats what you're looking for.

Read article

HTML5 canvas clock

One of the most popular things created when canvas came out was clocks. Strangely. Heres my clock code showing... clocks.

Read article

Console_Table class

The Console_Table class is some PHP code that allows you to easily create console-style (ASCII) tables.

Read article

CSS3 Reflections

CSS3 reflections can be used to create mirror-like reflections (or water-like). Written some time ago they still seem only to work in Chrom. So it may be WebKit only.

Read article

About the new CSS3 rgba() and hsla() (opacity/transparency)

An article detailing the new (at that time) rgba() and hsla() colour options for CSS. You can also read this RGraph documentation page about [canvas] colours.

Read article

RGrid for PHP: Datagrid class for PHP & MySQL

A MySQL datagrid class for PHP. Makes it easier for you to show tables of information to you users.

Read article

Dynamic Calendar/date picker for Javascript

A JavaScript date picker for your HTML forms. It is similar in operation to the jQuery date picker.

Read article

A File utility class

This PHP class implements various utility style functions for files, when using PHP.

Read article

C# Getopt class

This is a C# class that implements a GetOpt style class for when you'e dealing with command line arguments to your program.

Read article

HTML5 DOM storage

This article details the HTML5 DOM storage API which can be used to store data in the browser (like cookies only better - and it doesn't get sent back and forth to the server - plus it offers more storage space).

Read article

HTML5 Form inputs

This article shows you a few of the new HTML5 form inputs.

Read article

Whats new in HTML5?

This article details the new things that are available in HTML5 such as - ohhhhhhh I don't know - canvas. And other new elements and attributes too.

Read article

PHP HTTP_Request class

A PEAR class for making HTTP requests. This class is available via PEAR.

Read article

IE6 (finally) dies

IE6 usage finally falls to a low level (though it still hasn't gone completely, years after this article was written

Read article

Mime Decoding class

The MIME decode class can be used to - surprisingly - decode mime based emails.

Read article

The Net_URL PHP class

The Net_URL class is a PEAR based class that can be used to handle and manipulate URLs.

Read article

A PHP POP3 class

This is a PHP class that interfaces with a POP3 server and allows you to list and retrieve mail from it.

Read article

A guide to CSS Positioning

This a guide to CSS positioning - such as relative, absolute and float. It gives you an example of each possibly.

Read article

The PHP Net_Sieve class

Sieve is a way of filtering email that is incoroporated with the Cyrus IMAP email server. This is a PHP script for managing those scripts eg add/remove/edit.

Read article

The PHP SMTP class

This is an SMTP class that can be used to talk to an SMTP server from your PHP scripts. It supports all of the basic SMTP commands.

Read article

A PHP Tree class

An object-oriented collection of PHP scripts that can be used to manage a tree structure.

Read article

A PHP class for building dynamic tree menus.

A PHP class for building dynamic tree menus. The class is available via the PEAR website.

Read article

RGraph on social media