Calculate and highlight the differences between strings of text with PHP

php-differences

I was updating a CMS recently to archive various versions of data. If you’ve ever dealt with quality and version management you would appreciate the need to record all changes to specific text for the purpose of quality assurance. In my case, I needed to accomplish four tasks: Record specific changes to the published version [...]

HTML5 Audio and Video

html5-audio-video

If you’re somebody that plays embedded audio in your webpages – or perhaps you’re a podcaster – it’s likely you endure all sorts of compatibility problems when serving your audio for an array of ever increasing number of browsers and mobile devices. I blame Steve Jobs; if it wasn’t for his decision with regard to [...]

Include Twitter Data on your Website

twitter-data-website

Every application I build now is littered with various types of functionality that links them into different social network. If you’re reading this post it’s unlikely I’ll have to educate you on the merits of plugging your website into the social lives of your readers. What follows is some code that will help you integrate [...]

Automatically Convert MP3 links to Audio Players

mp3

Yahoo have a nice little snippet of Javascript that will convert all MP3 (and some other) links on your web page into functional flash MP3 players. I’ve sourced some JavaScript code from Google Pages that will do precisely the same thing… but instead of rendering a large player on your screen, it takes the minimalistic [...]

Use an iframe with JavaScript

Not unlike the little Facebook ‘like‘ button at the bottom of this page (and the Facebook friend widget, for example), it’s often necessary to use frames within a page that are called via JavaScript to generate content. The advantage of delivering content in this manner means that you can deliver widgets, audio and other bits [...]

Email Style Priority Field in a Form

I was building a form recently that required me to add a field that would indicate the priority of the database entry to other users. You are likely familiar with the function in your email client that permits to set the priority of an outgoing email as either high or low priority – default being [...]