Nick Yeoman
Working On The Web
Nick Yeoman Working On The Web

PHP

Updated 31March2010

Random numbers

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...
 
Updated 10January2010

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...
 
Updated 26October2009

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...
 
Updated 06November2009

CodeIgniter 404 page

Yesterday, I blogged about htaccess and a custom 404 page. Also in that article, I hinted that your framework should create your 404 page for you.

CodeIgniter is my favorite PHP framework, and I quickly explain how to create a custom 404 page.

Read more...
 
Updated 06November2009

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...
 
Updated 06November2009

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...
 
Updated 06November2009

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 actually wrote this article back in 2005 and I'm now just getting to posting it.

Read more...