PHP libraries
These scripts are free to download and use, but please see my terms and conditions page for terms and conditions of their use.
html2text
Renders HTML as text. Originally designed to construct text based email content from HTML pages, but useful for wherever text representations of HTML are required. Especially good when used with makeMIME.
html2text for PHP 4
PHP 4 compatible version of html2text version 1. This version is not supported, and will no longer be updated.
makeMIME
Creates multipart MIME emails, with support for text/HTML alternatives, multiple attachments, embedded images, priority, reply-to, Cc and Bcc.
giveMimeType
Attempts to work out the MIME type of a file from its file extension. Can be used if your installation does not support 'mime_content_type'.
validateEmail
Validates email addresses by checking with the relevant mail exchange servers that the email address really exists. Offers both validating and debugging modes.
ArabicToRoman
Converts Arabic numbers (normal numbers) into Roman Numerals, and vice versa.
Questionnaire scoring
Calculates questionnaire scores. Can be configured to give a custom title as well as custom responses to different scores, and can cope with single or multiple selection answers.
Server Push
Provides server push functionality to make it easier to use from PHP.
Grid Reference Utilities
Provides functions to convert between different NGR formats (primarily those used in the British Isles) and latitude/longitude formats, project between latitude/longitude and mercator or polar stereographic map coordinates, convert to/from cartesian GPS coordinates, correct altitudes based on gravitational fluctuations, and measure distances.
Geoid .grd file parser
Parses geoid .grd files, and either renders them with a variety of visualisation options, or allows you to store the results in a database. Requires you to add your own database connection code. (Demonstration limited to very small .grd files on this server.)
OSTN15 data file parser
Parses the OSTN15 and OSGM15 data file created by Ordnance Survey, and puts it into a database (such as an SQL database).
PHP systems
These are complete projects, not just a single PHP script.
Movie database
Your own private movie database. Allows you to manage your movie collections, with ratings and descriptions of movies and actors.
PHP utilities
These are not available for download, and are designed to be used here on this site.
High Accuracy WGS84 GPS To British OSGB36 Grid Reference Conversion
Converts between GPS coordinates (WGS84 or ETRS89) and British grid references using continental drift tools, OSTN15 and OSGM15.
Chords
Attempts to work out what musical chord is being played from a given set of notes or guitar strings.
Leap years
Works out what leap years are between given dates.