iBATIS Data Mapper

What is iBATIS? iBATIS is a framework that utilize DAO and SQL Maps to create a light weight persistence layer interfaces that allows you as the developer to easily interact with your Database using objects and sql that you write instead of learning complex ORMs such as Hibernate. Simply put iBATIS acts as the mapper

// Java //
Read More

PHP Email Address Requirements & Validation

Email Validation is a tough subject to nail down, as their are tons of available code snippets that claim to validate an email address.  To make it easier below you will find the requirements for a valid email address as outlined by RFC 2822 followed by a script that can be used to validate email

// PHP //
Read More

Remote Code Execution

Remote Code Execution is a security vulnerability in where a malicious user manipulates input or a url to run code from a remote location.  Unlike Cross Site Scripting XSS where only the user is affected Remote Code Execution could run scripts that delete all files on your server. This security risk like most vulnerabilities comes

Comment and Document your php code with phpDocumentor

Why spend the time to comment your code? As a programmer we spend our time writing code from simple one line scripts to complex applications. No matter what the size adding comments and documenting your code adds to the longevity of your project.  The reason I say this is that if you write a library

// PHP //
Read More

Yahoo Finance Stock API

Yahoo Finance Stock API? The Yahoo Finance Stock API appears to be both commonly and uncommonly known to the public.  The API is most easily seen by performing a stock quote search on the Yahoo Finance website and then selecting the “Download Data” link in the page details.  Looking at the link would show a

Client URL Library (cURL) – An Overview

What is cURL? Client URL Library or cURL for short is a library of functions designed for the purpose of safely fetching information from remote sites.  The purpose of the library is to send a request to a server using a defined protocol (http, https, ftp, etc) and to return the result back to you

// PHP //
Read More

Harvest – Online Time Tracking and Reporting Application

What is Harvest? Harvest is, simply put, an online time tracking application. Harvest works on the basic concept that your time is recorded on a per project basis and that each project belongs to a client. This allows you to easily generate an invoice for a project or at the client level depending on your

auto load your php library classes with spl_autoload_register

Like all php programmers i have become more than familiar with the functions require, include, and require_once. All are for the inclusion and execution of scripts, or in simple terms a method to include classes or code contained in another file. An issue that faced when using these methods is knowing where to find the

// PHP //
Read More

Doctrine – An ORM (Object Relational Mapper) for PHP

Doctrine is an Object Relational Mapper (ORM) written for the PHP programming language. First off, for those who don’t know, an ORM is programming technique of connecting objects to the data stored in a relational database. What this provides is an object based method of modifying and interacting with the database instead of writing sql

// PHP //
Read More

Black Hat Search Engine Optimization – A guide on what not to do

Search Engine Optimization (SEO) techniques can be categorized as white hat or black hat. White hat optimization is when approved techniques are used to enhance your website’s page rank, I have covered the basics of those in a previous post in this entry am going to focus on black hat or in more forwardly: what

// SEO //
Read More