From the category archives:

Programming





php glob

I had a gentleman ask me on a forum recently how to produce a simple list of all files within and below a particular directory. Here’s some simple PHP code that will simply produce a list of all files below a particular directory and provide a link to that particular file. This code will just [...]

{ 0 comments }

Add WordPress tags within your post

July 15, 2010
Tags

I was asked a completely random question via a blogging forum yesterday; “how do I integrate WordPress tags within my actual WordPress post“. Why anybody would want to do such a thing is quite beyond me. I can only assume they were fairly junior to WordPress because the purpose of the tags were to emulate [...]

Read the full article →

Dot.Net versus Java – The Movie

July 2, 2010
dot net java

I’m neither a lover of Microsoft or a hater of Java, but this short movie – both in terms of content and production quality – is just brilliant. I may now have to reacquaint myself with Java. Enjoy. getv //

Read the full article →

Short WP New Post Email Notification List

June 25, 2010
Wordpress email

There are quite a few plugins that add mailing list functionality to your blog, meaning that users can subscribe to mailing lists, new posts or new comment notifications – and so on. A problem arose when I decided that I wanted to add a notification system to a new blog (having never used such a [...]

Read the full article →

WordPress Post Missed Schedule

June 25, 2010
wordpress

I’ve got a lot of blogs – many that I don’t check for errors as often as I should. Some days, I’ll set aside a few hours and past in some posts that I’ll schedule to publish throughout the week so I can set and forget. I found an error in two of the them [...]

Read the full article →

A problem with the PHP mail function… and alternatives

January 16, 2010

I hate the php mail() function. I’ve had so much trouble with reliability that I’ve pretty much given up on it as a means of sending mail. I now use the SMTP class SwiftMailer almost exclusively with everything I do… and I never thought or bothered to investigated the range of issues that were problematic [...]

Read the full article →

PHP Function to Force Links to Open in a New Window

January 15, 2010

Here’s a very simple PHP function that will parse text and force fully constructed links to open in a new window. If you’re building a comment area (or something similar) for your website it’s likely that you want to retain an open page to minimise your click-through-rate, and this function will assist to serve that [...]

Read the full article →

BBcode with PHP

January 14, 2010

What is BB Code? Bulletin Board Code or BB Code is a lightweight markup language used to format text within posts made on the majority of message board platforms, although it’s now widely used in any application that permits posts, comments or contributions from users. The available BBcode tags (similar to HTML) are usually indicated [...]

Read the full article →

Simple WHOIS PHP Script

January 12, 2010

WHOIS is a protocol that is widely used for querying databases in order to determine the registrant or assignee of a domain name or IP address (range). In its simplest form, building a small PHP script to query the appropriate WHOIS server and outputting readable information is quite simple, yet complex solutions are usually required [...]

Read the full article →

Form Checking & Displaying Errors

January 10, 2010

A friend emailed me tonight and asked how I output form errors onto a page once a user has submitted invalid data. Rather than email him back, I’ll post an abbreviated version of my preferred method here. My friend wrote about 50 lines of code to accomplish what we do in about 10 below. I [...]

Read the full article →

Make text links clickable

January 9, 2010

The process of parsing text and making text links within it clickable is quite challenging, and well beyond the comprehension of my limited brain capacity. Fortunately, there are plenty of people out there who have released their own snippets of code that tend to accomplish the task quite well – particularly if you’re submitting text [...]

Read the full article →
Get Adobe Flash playerPlugin by wpburn.com wordpress themes