August 31, 2009

Symfony: Propel VS Doctrine

Filed under: Programming, Symfony — James @ 8:58 am

A few days ago I started using Symfony. I chose to use Propel as the ORM. The ORM generates the PHP classes and database structure from your schema.
(more…)

August 25, 2009

Symfony Deploy Script

Filed under: PHP, Programming, Symfony — James @ 3:48 pm

I’ve just started using the PHP framework, Symphony, after putting it off for far too long!

This seems to be the way to download and deploy symfony, and I’m sure I’m going to want to do it again so I took notes, here they are: ;)
(more…)

November 23, 2008

Explode into associative array

Filed under: How To, Mac OS X, PHP, Programming — James @ 6:32 pm

Simple function to explode a string into an associative array. Works in the same way as the normal explode but takes an extra argument which is an array of keys to use for the returned associative array.

(more…)

November 11, 2008

Bash script to retry failed command

Filed under: Bash, Programming — James @ 2:09 pm

This was originally developed to retry an rsync command if a network error happened. It’s a mishmash of code found from around the net, and could probably be tidier but it gets the job done.

(more…)