PHP Scripts

Open source and one of the most popular programming languages on the web, PHP has become the server side language of choice for many.

HTML Purifier (#)

HTML Purifier is quickly going to find it's way into our third party scripts: HTML Purifier is a standards-compliant HTML filter library written in PHP.

Have a play with the demo, where you can see that not only does it remove malicious code, but it can correct sloppy code, auto link urls and sort out deprecated tags among other things. Check out how it stacks up to other filters...

PHPSlideShow (#)

Juat as the title says, PHP Slideshow has a whole whack of features and three different demos:

  1. with thumbnails.
  2. without thumbnails.
  3. with thumbnails and auto slideshow turned on.

Scriptaculous Lists with PHP (#)

A PHP class that - along with a little Javascript - builds drag and drop sortable lists (or anything). The demo page is quite slick, and the code is available for downloading.

PHP XML Library (#)

For some reason, this script worked when Minixml bonked, and for that reason alone it's a nice one to have in your library.

FPDF - PHP class for generating PDF files (#)

There are a few PHP PDF classes out there for people who don't have access to PHP's PDFlib.

While others threw errors right out of the box, I found FPDF to be the easiest to get going and for building PDF files on the fly with PHP.

htmlSQL - a PHP class to query the web by an SQL like language (#)

The title kinda says it all, but seriously head over to the site and check out the demo to see for yourself. A class that allows you to extract data from html by using an sql like query! I have no idea where this will be useful, but now that I know it exists I'm sure something will come up.

zFeeder (#)

Currently powering dont meet your heroes, zFeeder is a PHP aggregator or feedreader that parses xml files and outputs formatted content.

It supports all versions of RSS (0.9, 0.9x, 1.0 and 2.0).

Charts with PHP and Google Charts API (#)

I haven't spent any time looking at the Google Charts API, however this little class - which aims to provide a simple and lite charting solution in PHP - looks like a good place to start before diving into the whole API. While I haven't looked at the code, the result allows you to quickly build simple charts and pop them into your site or application. Very nice if you are in need of a quick solution.

phpOpenTracker - Tracking & traffic analysis tool (#)

From the site: phpOpenTracker is a framework solution for the analysis of website traffic and visitor analysis... It features a logging engine that, either invoked as a web-bug by a HTML tag or embedded with two lines of code into your PHP application, logs each request to a website into a database. One installation of phpOpenTracker can track an arbitrary number of web-sites.

PHP Calendar script (#)

A great looking little PHP based calendar script built by Keith Devens. Given the year and month it will output a calendar for that month, and given date data thru an array, it can link individual days and add styles to the date.

PHP Markdown (#)

Michel Fortin's PHP port of John Gruber's Markdown. Markdown is a text-to-HTML conversion tool that allows you to write in plain text format, then convert it to structurally valid XHTML (or HTML).

PHP SmartyPants (#)

Michel Fortin's PHP port of John Gruber's SmartPants. From the site: PHP SmartyPants is a free web publishing tool that translates plain ASCII punctuation characters into “smart� typographic punctuation HTML entities.

PathStats, a plugin for ShortStat (#)

Building on Shaun Inman's ShortStat, this plugin will show the complete detail of the last n users including their path through your website. A nice little add-on for Shortstat.

How to create thumbnails with PHP and gd. (#)

From the site: This small article will explain how you create a thumbnail from an image in PHP. Furthermore you learn how to batch process a whole folder of images and create their thumbnails.

MailFeed (#)

From the site: MailFeed is a PHP script that checks a POP3, IMAP, or NNTP mailbox on demand and returns an RSS feed containing the messages in the mailbox (including message bodies, if desired).

I haven't tried this out yet, but on the surface it seems like a neat idea, however: If you decide to pass your username and password via URL parameters, be forewarned that this is a security risk. worries me a bit. It would appear that these details can also be set somewhere in the source code.

Highlight Source Code in Your PHP Application (#)

From the site: If you run a Website about programming, chances are that you display source code on your site's pages. Wouldn't it be great if the source code was highlighted.

Author Stoyan Stefanov goes on to outline two methods, one with simple PHP built in functions and another using a PEAR package.

Cake PHP framework (#)

I have yet to dig into it (and I sooo will), but this looks hot for PHP dev types: Cake is a framework for PHP, based on Rails.. Rails is based on the Model View Controller (MVC) idea, which I like to try to use.

While it appears to only have been around for 6 days (at the time of this post), this looks very, very interesting.

Freetag - an Open Source Tagging /Folksonomy PHP Class (#)

Described as an Open Source Tagging / Folksonomy module for PHP/MySQL applications, it consists largely of a PHP class that can be hooked into existing applications, adding on the ability to tag items.

Used on Upcoming.org, the code is well commented and the zip package is well documented too.

PHP Trackback (#)

This should be a useful class for people who are rolling their own weblog scripts. A PHP class with TrackBack capabilites, including pinging of trackback URIs, receive trackbacks from other clients and seed pages for auto-discovery. The class also extracts links from a given string and can search these links for trackback URIs.

The PHP Metadata Toolkit (#)

I've been trying to get together something like this myself: The PHP JPEG Metadata Toolkit is a library of functions which allows manipulation of many types of metadata that reside in a JPEG image file. Now maybe I won't have to!

Incutio Limited : Be Inspired (#)

Incutio offers up some open source scripts, including two database driven Yahoo! style links managers, an Amazon search script, a php class for querying the Google API and a PHP XML-RPC library.

k5n.us: WebCalendar (#)

From the website, this project is described as a PHP-based calendar application that can be configured as a single-user calendar, a multi-user calendar for groups of users, or as an event calendar viewable by visitors.

phpSurveyor (#)

From the website: PHP Surveyor is a set of PHP scripts that interact with MySQL to develop surveys, publish surveys and collect responses to surveys.

Douglas Bowman - Photo Gallery Templates (#)

From the site: These Photo Gallery Templates are provided for anyone who wants to automate publishing of their own well-designed photo galleries. A product of Douglas Bowman, need I say more?

Check out the Resource categories for older content

The latest from my personal website,
Mike Papageorge.com

SiteUptime Web Site Monitoring Service

Sitepoint's web devlopment books have helped me out on many occasions both for finding a quick solution to a problem but also to level out my knowlegde in weaker areas (JavaScript, I'm looking at you!). I am recommending the following titles from my bookshelf:

The Principles Of Successful Freelancing

I started freelancing by diving in head first and getting on with it. Many years and a lot of experience later I was still able to take away some gems from this book, and there are plenty I wish I had thought of beforehand. If you are new to freelancing and have a lot of questions (or maybe don't know what questions to ask!) do yourself a favor and at least check out the sample chapters.

The Art & Science Of JavaScript

The author line-up for this book says it all. 7 excellent developers show you how to get your JavaScript coding up to speed with 7 chapters of great theory, code and examples. Metaprogramming with JavaScript (chapter 5 from Dan Webb) really helped me iron out some things I was missing about JavaScript. That said each chapter really helped me to develop my JavaScript skills beyond simple Ajax calls and html insertion with libs like JQuery.

The PHP Anthology: 101 Essential Tips, Tricks & Hacks

Like the other books listed here, this provides a great reference for the PHP developer looking to have the right answers from the right people at their fingertips. I tend to pull this off the shelf when I need to delve into new territory and usually find a workable solution to keep development moving. This only needs to happen once and you recoup the price of the book in time saved from having to develop the solution or find the right pattern for getting the job done..