Scripts

PHP Error Handling Class

May 6, 2007

Error handling is obviously fairly important so I have finally invested time into a custom error handling class for PHP 4 and above. It is a fairly small and simple class (only about 150 lines), I’m quite happy with it so far, of course you can download the class below and try it out for [...]

Return JSON array using AJAX and Prototype

February 13, 2007
Thumbnail image for Return JSON array using AJAX and Prototype

Well, Prototype is pretty awesome. So is scriptaculous. However, I was hunting around and I couldn’t find a decent tutorial on how to return an array of data using prototype’s AJAX functions in JSON notation. There is this one, which was helpful, but it did a lot more than I wanted, and I wanted to [...]

Displaying File Permissions with PHP

January 12, 2007

For whatever reason you may need to display file permissions for one of your websites. I have thrown together a very basic script which will recursively (yay recursion) navigate your filesystem and save the folder/filenames and their respective file permissions into an associative array. The script then displays the array very basically.

Using Scriptaculous for a simple Image Morph

November 3, 2006

Creating a morphing image using the scriptaculous javascript libraries is really pretty straightforward. I was chewing over which libraries of special effects I should use first, browsing round mochikit and scriptaculous when I found this page and it cinched the deal – sorry mochikit, next time. The method I have uses for this image morph [...]

Simple Recursive PHP Tree Menu Example

October 23, 2006
Thumbnail image for Simple Recursive PHP Tree Menu Example

Recursion. It can be a bit to get your head around at first but it can often create a lightweight, robust and elegant solution. This is a pretty basic example of recursion using PHP which can display a list based tree of a catalogue or any sort of data which has parents, children and end [...]

Ajax Dropdown Example

September 17, 2006
Thumbnail image for Ajax Dropdown Example

Ajax Dropdown Example Download. Everyone knows what Ajax is by now, and there are a slew of libraries and toolkits out there that I mostly have very little experience with but have linked to below because I want to use some of them someday. AJAX Basics For those that don’t know AJAX is simply a [...]