Change Design:
retrogrunge

The Latest Happenings

▣ Tyson rocks the hizzouse

posted by BJ on September 22nd, 2007 at 4:51 PM (MST)

1 Comments added to this post

Tyson is a very cool guy

Read More ...

▣ Force a file to download (PDF, JPG, etc...)

posted by BJ on May 8th, 2007 at 3:24 PM (MST)

0 Comments added to this post

Ever wanted to force a file to download, such as a pdf or jpg? Using PHP a short script, we can do this quite nicely.

Read More ...

▣ MIME Types

posted by BHO on February 23rd, 2007 at 11:45 PM (MST)

1 Comments added to this post

MIME Types, Pretty helpful for setting php headers and spitting out files.. Enjoy

Read More ...

▣ HTTP Status Codes

posted by BHO on February 23rd, 2007 at 10:54 PM (MST)

0 Comments added to this post

Helpful for ajax processing... maybe. Mostly just so you know

Read More ...

▣ Getting the range of ENUM values from a MySQL field

posted by BJ on February 20th, 2007 at 1:22 PM (MST)

0 Comments added to this post

I wanted to output the range of ENUM values specified for a field in a MySQL table, but I DON'T want to maintain that list using a seperate table.

Read More ...

▣ wicked ajax script

posted by ross paskett on February 20th, 2007 at 11:50 AM (MST)

0 Comments added to this post

This is a wicked little ajax script that does a lot of stuff inline, so it is compact, fast, dynamic, and that means REUSABLE!

Read More ...

▣ include/require

posted by tracey on February 20th, 2007 at 9:56 AM (MST)

0 Comments added to this post

what's the difference?

Read More ...

▣ Intelligent handling of character limits in textareas

posted by Rainer Ahlfors on February 19th, 2007 at 2:21 PM (MST)

0 Comments added to this post

Read More ...

▣ Define parser.

posted by Jon S on February 19th, 2007 at 10:40 AM (MST)

1 Comments added to this post

If you ever wanted to open up a PHP file and change the defines inside of it for inside your code, attached is an easy help.
Just call get_define_keys("myfile.php");
It returns an array with the key as the define, and the value as the contents (including any quotation marks).

Just change the values, and then call save_define_keys("myfile.php",$keys); to save it.

Caveats: if your define contains ");" you're in trouble.
If the file contants more than one define for a value, it will replace all of them.
If the value isn't a string text constant, this won't find it.

Read More ...

▣ variable variables

posted by tracey on February 16th, 2007 at 1:47 PM (MST)

0 Comments added to this post

create variables from an array

Read More ...

▣ Preloading images in JavaScript

posted by BJ on February 16th, 2007 at 1:18 PM (MST)

0 Comments added to this post

Josh needed to "mod" Zen Cart to do an image preload without doing body onload="...", so I dug this out of the dungeons of Google.

Read More ...

▣ Formatting a Document/Image Name using Regular Expressions

posted by BJ on February 16th, 2007 at 12:35 PM (MST)

0 Comments added to this post

Today I needed to strip out some phony characters from an uploaded document name before calling move_uploaded_file() and storing it in the db... Regular Expressions to the rescue. I decided to use preg_replace() to do the work for me.

Read More ...

▣ Incredible video - this is what it's ALL about

posted by BJ on October 10th, 2006 at 9:16 AM (MST)

140 Comments added to this post

You must watch this video, it is incredible.

Read More ...

▣ Websites-o-rama

posted by BJ on September 8th, 2006 at 7:23 PM (MST)

0 Comments added to this post

So just today I had to make a list for school of websites I've designed and maintained. I've been pretty good about making sure I keep copies of all my files since I never know if I'll need any of the scripts again.

I was so happy with what I saw when I dug up all the old sites I've done, I decided to post them here.... so here they are!

Read More ...