PHP Object Generator

As a developer of both Rails and PHP I am lucky enough to see the advantages one has over the other. One of the clear advantages Rails has over PHP is its RAD capabilities. This is largely thanks to ActiveRecord and the fantastic Rails command line tools. PHP however, does not have these command line

(Read More…)

Database Abstraction

When using MySQL in PHP I often use a simple database abstraction class that I wrote some time ago. This class sits as a layer between the application and database layers. I find that this really shortens the amount of code I have to write. The result is a more organic, succinct script. At this

(Read More…)

Tags: , ,

Spl Stack Tutorial

This week I needed to run a series of procedures in a standard first in, last out methodology. I could, of course, have used an array for this, however, I decided to try out a stack. Spl data structures are often over looked in PHP. However, as PHP advances into a more object orientated environment,

(Read More…)

Tags: , ,

Forcing Mobile View of a Website

I am currently working on a mobile version of a website and wanted to ensure that my content would fit the screen of which ever device visited the site. I know many developers who would settle for a setting the content width fixed to 320px (the width for an iPhone user). However, it is impossible

(Read More…)

Firefox 7 to use up to 50% less memory than previous versions

News that Firefox 7 will use up to 50% less memory than previous versions is quite a nice surprise. I have always found that Firefox browsers are much less stable than Chrome. Rather than writing a full post on this, I have decided that I can’t compete with this great post which sums everything up

(Read More…)

Tags:

Engine Yard Acquire Orchestra

Engine yard’s acquisition of orchestra spells great things for the future of the way we develop web applications. Engine yard offers a revolutionary way to develop Rails apps in a cloud based environment and the news that we will soon be able to develop PHP apps in this environment is fantastic. For anyone who has

(Read More…)

Tags: , ,

Flex for free!

Just a quick note…. For all you Flex developers out there who don’t want to pay big bucks, I found a great post today which outlines the best way to develop Flex for free! Here’s the link

Tags:

Zend Form Validation

Today, I’d like to talk about validating form data with Zend.  Traditionally, validating form data in PHP is quite a cumbersome task, especially when it comes to validating email addresses. We might detect characters such as (\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,6}) and then either send the data back to the user to re enter data or use str_replace() to

(Read More…)

Tags: , ,

Multithreading in Ruby

Today I needed to create a script that would crop a batch of images as a user uploads them. This worked great when only a couple of images were being uploaded however, when the user needed to upload ten images for example, things got a bit clunky.  Coming from a PHP background, I naturally would

(Read More…)

-->
© Mike Hart