| Subcribe via RSS

Switching IDEs! CodeIgniter Users Should Too!

October 18th, 2009 | 2 Comments | Posted in Code, PHP

I don’t know about you, but changing IDEs is a major thing for me. As my development skills have progressed over the years, I have been looking for more ways to take advantage of the development software I’ve been using. I am constantly wanting to improve my development experience and trying to find ways to speed up programming. Well, this past week, I basically did an assessment of Dreamweaver and here are my conclusions.
More »

PHP Function for URI and URI Segments

September 3rd, 2009 | 1 Comment | Posted in Code, PHP

Here’s a function I wrote to parse through the URI to get segments. I wrote it to use with CodeIgniter to get URI segments before they had been altered and “-” gets changed to “_”. It can be used in any application.
More »

PHP MySQL Class

May 1st, 2009 | 2 Comments | Posted in PHP

So it’s probably pretty late in “the game” to be posting this, however I thought I might do it anyway just for those that may want to get started using OOP in PHP. I’ve been using this for a while and improving it wherever I can, then I started using CodeIgniter which ended up having a very similar class built into it. So if you are wanting to learn OOP, this might help you a long and it will make for a good transition into an MVC if you decide to move forward from there.

More »

Image Thumbnail Creator

October 17th, 2007 | 11 Comments | Posted in PHP

Like many other people, I found Mike Lopez’s image thumbnail script quite useful. He has taken the time to go through the brain-crunching algorithm to create image proportional image thumbnails when given a max height/width. Although this script is very handy, it was lacking in a few areas, such as transparent PNG and GIF support, as well as the un-needed resize if the image was smaller than the requested dimensions. I hope I have “helped” in this situation by modifying the script so that it handles such requests. Credit for the transparency support goes to Martin Schmidt (icheee).

One modification I made that is important to note is that the image is now fed through with the SRC variable, rather than the IMG variable. Thanks Mike for this script and I hope my updates really help.
More »

Download Code

October 9th, 2007 | No Comments | Posted in PHP

This code is something i found that will force download, rather than opening in browser:
More »

Validate Email Address

February 23rd, 2007 | No Comments | Posted in PHP

Here’s some PHP code that will validate an email address.
More »

Interdum

January 30th, 2007 | No Comments | Posted in PHP

This post is merely to display a block of code and how WP manages to jack it up. Notice the extra line break between each line of code. This isn't going to work, and must be fixed!

CSS:
  1. margin-bottom: 12px;
  2. font: normal 1.1em "Lucida Sans Unicode", serif;
  3. background: url(img/quote.gif) no-repeat;
  4. padding-left: 28px;
  5. color: #555;

Also, aren't the blockquotes cool!?

Sed sodales nisl sit amet augue. Donec ultrices, augue ullamcorper posuere laoreet, turpis massa tristique justo, sed egestas metus magna sed purus.