posted by BJ on September 22nd, 2007 at 4:51 PM (MST)
1 Comments added to this post
Tyson is a very cool guy
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.
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
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
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.
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!
posted by tracey on February 20th, 2007 at 9:56 AM (MST)
0 Comments added to this post
what's the difference?
posted by Rainer Ahlfors on February 19th, 2007 at 2:21 PM (MST)
0 Comments added to this post
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.
posted by tracey on February 16th, 2007 at 1:47 PM (MST)
0 Comments added to this post
create variables from an array
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.
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.
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.
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!