i'm on twitter

Tag Archive | "php"

Inline Images With Data URLs

August 11, 2010 No comments yet

This particular trick comes in very handy for the mobile platforms. Instead of linking to your CSS and your images, you can use this method to embed the images inline within the CSS. This keeps the browser from having to make multiple calls, thus speeding up the load time of your application. You can also [...]

Error Handling

August 11, 2010 No comments yet

In the world of the Internet, as a developer, we need to protect ourselves from prying eyes. One of the easiest ways a hacker can crack your code is if you tell them what they did wrong. For that reason, it’s important to suppress errors from the public. But, this doesn’t mean we should eliminate [...]

Database PHP Class

June 15, 2010 1 comment

I’m back with another chunk of code. This time, it’s my database class. I got sick of coming across classes that didn’t have everything I needed, or didn’t do it correctly. One of my biggest problems was an inability to nest query calls within another query result’s output.

(UPDATED 08-10-2010) Forms Class for easy and consistant forms

March 31, 2010 No comments yet

UPDATED 08-10-2010: I’ve cleaned up a lot of code and organized the code a little better. One major improvement is the passing of element attributes. You can now pass an unlimited number of attributes. If there are any you want omitted from the actual element tag, you can add it to the $attributes_not_allowed array. I’ve [...]


i'm on twitter