9. March 2010

No Comments »

test

this is a test

Continue reading...

7. March 2010

No Comments »

atime, mtime, and ctime

On traditional Unix-style file systems three timestamps are associated with each file. These timestamps are atime, ctime, and mtime. Most people understand atime as “access time.” A file is accessed when its content is viewed or is executed. ctime and mtime generate confusion since “change time” and “modification time” seem synonymous. However, what you need [...]

Continue reading...

12. January 2010

2 Comments »

Debugging MySQL issues in PHP

Possibly the most common issue users have with PHP is working with MySQL. Executing a query requires a three step process:

Connecting to your database server.
Selecting a database.
Executing the query.

When a query fails, many users don’t know where to begin debugging. This guide outlines my debugging procedure.
Verifying Database Connectivity
1. A database connection is generally established using [...]

Continue reading...

9. January 2010

2 Comments »

isset vs. empty

Many people tend to view these two functions as opposites, causing necessary debugging. This issue frequently occurs when validating forms.
isset()
From the PHP manual:
isset — Determine if a variable is set and is not NULL
In other words, a variable is set if it has been assigned a value other than NULL. If a variable is assigned [...]

Continue reading...

4. January 2010

No Comments »

Basic OCR

This is a very basic optical character recognition script written in PHP. This is untested and serves merely a proof of concept. As noted in the comments, adjusting the sample size can improve results, since with a large sample size on a small image there can be many collisions. A database is needed to compare [...]

Continue reading...

4. January 2010

No Comments »

Using PHP and GD to add border to text

Continue reading...

4. January 2010

No Comments »

Basic CAPTCHA

Very basic code demonstrating the use of the GD library by creating a simple CAPTCHA.

Continue reading...

4. January 2010

1 Comment »

Getting to know GD

Create dynamic userbars with GD
Introduction:
Have you ever been on aim and received a message from one of your friends with a big long URL followed by something like “John%20Is%20Stupid.” You know what ever it is, wont be worth your time, but you click on it anyway to find someone goofy looking holding a sign and [...]

Continue reading...

30. November 2009

No Comments »

LOL Monday – Videos

I found this video hilarious. For those of you who are “slow,” it is how comment systems work on blogs.

See more funny videos and funny pictures at CollegeHumor.
I found this one just as funny, but for a different reason…

I’m just trying to figure out how a GUI interface can track an ip address – let [...]

Continue reading...

29. November 2009

2 Comments »

SEF URLs with out mod_rewrite

If you have done any web development, passing requests becomes an integral part of your code. Whether it is a session id, data to validate, or a view file to load you will most definitely end up passing one request or another. While working on my framework (which uses the model-view-controller design pattern), I decided [...]

Continue reading...