Twitter Feed

Sponsors

Related Links

Error
  • Error loading feed data
Article Image

Redirect Based On Browser (user agents)

There are a number of situations where you may need to redirect the browser based on the user agent of the browser. An example would be to an IE6 page, or a smartphone modified subdomain.

Read more...

Article Image

Random numbers (for contests)

I hold a lot of contests where I select a random winner. Unlike the past I don't print out all of the contestants and draw from the hat, I use a command line PHP script.

Read more...

Article Image

PHP Validation Class

This article includes the PHP class I use for simple form validation. The intent is to use the class for simple web forms such as a contact us form. If you are working on something larger like an e-commerce site you need something more robust.

Read more...

Article Image

MySQL INSERT From A PHP Array

I'm hooked on using CodeIgniter which uses an active record class. This is bad because when I work on a non CodeIgniter project the work is not done for me. This article explains the PHP function I wrote which takes a Associative array and converts it into a mysql INSERT statement.

Read more...

Article Image

PHP Sessions

This is a brief introduction to PHP sessions. Creating sessions are very easy! Frameworks and CMSes usually have a built in class to handle PHP sessions, but today I was working on a project which didn't have such a class. Also this is a good article if you are just learning PHP. I wrote this article back in 2005.

Read more...

Article Image

CodeIgniter 404 page

Yesterday, I blogged about custom 404 pages using htaccess. In the apache article, I hinted that you should use your framework to handle the 404 page.

This article explains how to create a custom 404 page in CodeIgniter (PHP framework).

Read more...

Article Image

PHP heredocs

Developers who don't use heredoc's have really annoying code to edit. Too many prints or echos. This article shows easy it is to use heredocs in php.

Read more...

Article Image

CodeIgniter

I'm currently developing websites using the php framework CodeIgniter. This article provides a library of resources which I use well developing with CodeIgniter.

Read more...