// author archive

Ed

Ed has written 22 posts for edrackham

How to make URL Safe strings for mod_rewrite using PHP

It's relatively easy to make URL safe strings for use by mod_rewrite. Let's use the example that you have a form that adds a new blog post to your site. When the user submits this form, you want to generate a URL safe string (based on the title of the blog post) for mod_rewrite to […]

Top iPhone Games

Top iPhone Games is a new site I've just released which shows you the top iPhone / iPad / iPod games based on data aggregated from across the internet - so it's unbiased!
Visit Top iPhone Games now and let me know your feedback!

Control your iPhone iPod playback with your headphones.

I have to say, I haven't tested this on anything other than an iPhone 3G S, but hey I couldn't find anything out there for this, so here you go!
This is a list of key presses on (what seems like a very simple implementation of) the headphone control for the iPod. This list will show […]

Solution to Form Submit 403 Error

Have you ever had a problem where you get a HTTP 403 error from submitting a form?
Does this form have a field that submits a URL?
If yes to the above two questions, I think I know the problem you're having, and have a solution. It's to do with mod_security (an Apache module) and the 'http://' […]

PHP Date Picker

This is a simple to use script that can be called at anytime to insert a date picker into your form.
Example
Your browser does not support IFRAMES. Please view the date picker at http://edrackham.com/tutorials/php-date-picker/
Usage
Just make a call to

echo DatePicker();

wherever you want the date picker to show. If you want to use it multiple times, just […]

Functions Inc.

Functions Inc. is a new site I've started for all you guys to add your code snippets to. It's an online code snippet repository where you can add your useful snippets, as well as view others. You can keep your snippets private, just using the site as an online code library, or choose to share […]

Awesome Form Validation

I don't know about you, but I always work hard on my form validation (and would never use just JUST JavaScript to validate input locally). It puts a smile on my face when a form is technically valid, yet won't submit:

Simple Web 2.0 Design and CSS Tutorial

This tutorial aims at teaching you how to make a simple "Web 2.0" design.

Setup
To start, let's create a new document in Photoshop, 1024px (width) by 700px (height).

Guides
Now, lets set up predefined areas (for areas like the header, and content) using guides. We will be creating four guides for now.

First Guide: Horizontal, position: 160px
Second Guide: Horizontal, […]

Online .htpasswd Generator

Use the following .htpasswd generator to secure your Apache web directories.
Your browser does not support IFRAMES. Please view the generator at http://edrackham.com/tutorials/online-htpasswd-generator/
Make sure you have a .htaccess and .htpasswd file in the directory you want to secure, then add the entries once you've generated your password.

Online MD5 Hash Generator

Here is a simple MD5 hash generator I created quickly as part of a useful toolset I'm planning to build up.
Your browser doesn't support IFRAMES. You can see the MD5 hash generator here.
The code to generate an MD5 hash using PHP is simple:

md5($string_to_convert);

Recent Comments