Archive for the ‘Dev’ Category

Easy SEF URL’s with PHP

Sunday, August 8th, 2004

Just a little brainstorm on how to make your links SEF.

  • Old: content.php?id=58&page=3
  • New: content/Some-crazy-title/58/3

Basically, what I like to do is have the title of the page I’m showing (like an article title) as the first part of the URL, and then the “important” information like ID’s and page numbers etc. go after it. As long as you follow the same “layout” of the URLs in every URL you make, then you can use the information as if it were a query string. So if you use Title/ID/PageNum, then use it everywhere!
(more…)

Image Verification with PHP

Sunday, July 25th, 2004

I started experimenting with the GD image functions and decided there was no better way to test them out then to create a simple image verification script. So read on and I’ll show you what I got. ;-) The script is pretty simple, it creates a random string in the form of word1_word2#. For example: mess_week94. It uses PHP’s native session functionality (I know, eeew! :-P). The form itself is simple, could be edited for more fields (obviously). See the screenshot for an example.

So read on if you want :-)
(more…)

Collapsible Tables with Javascript

Friday, July 23rd, 2004

A lot of people have asked me lately how to create collapsable tables (or div’s, or anything else for that matter) and I thought I’d do a little informal writeup on how I do it.
(more…)