Ian P. Christian's Personal Blog Random witterings from pookey

31Mar/093

sfServiceDefinition – a brief introduction

Fabien has already introduced the symfony service container, and will be shortly releasing a post covering more of it. I was keen to get my hands dirty, so I've dived into the code and got a quick example working.

Continue reading
Filed under: php, symfony Continue reading
30Mar/091

YAML in PHP – fun with sfYaml

In a recent post about Symfony components - Fabien wrote about how the Symfony project (yes, that's right - a capital S now!) will be releasing more and more components. In this post I introduce sfYaml, a YAML parser for PHP - building on my previous blog post about routing.

Continue reading
Filed under: php, symfony Continue reading
29Mar/094

Playing with symfony routing – without symfony

symfony 1.2 was quite an improvement over 1.0, one of the most important changes was improved decoupling between components. In this article we're going to put this to the test and have some fun with sfRouting.

Continue reading
Filed under: geek, php, symfony Continue reading
26Mar/092

Rate Limiting SOAP client in PHP

I've recently had the requirement to rate limit SOAP calls to a remote API, so having done the work I though I'd document it here.

Continue reading
Filed under: geek, php Continue reading
23Mar/091

Using the ‘classmap’ with SOAP in PHP

I've recently done a little bit of SOAP work whilst spec'ing out a project for work - and I noticed that the PHP manual page for SOAP a mention of the 'classmap', which isn't documented so well. I thought I'd put an example here to show it's usage.

Continue reading
Filed under: geek, php Continue reading
23Mar/090

Pirate Duck Update

As you should be aware from my previous blog post - Bring Back Pirate Duck - one of my ducks is missing. This morning upon returning I found a small padded envelope addressed to 'Mr Ian P Christian - Duck Master".

Continue reading
21Mar/096

Selecting a random database row

I recently wanted to select a random row from a database, it seemed like a pretty trivial thing to do - but as often the case, it's not as easy as I first expected it to be!

Continue reading
Filed under: geek Continue reading
16Mar/090

STOMPing with PHP – intergration with ActiveMQ

In a previous post, "Playing with ActiveMQ using Maven", I showed how to produce and consume simple messages using Java. In this short post I show how to access these messages from PHP using STOMP.

Continue reading
Filed under: geek, php Continue reading
16Mar/096

Playing with ActiveMQ using Maven

In this post I demonstrate how to get started with ActiveMQ. This is very much a simple beginners guide, and shows you just enough to get a message traveling between 2 separate applications.

I've separated the example up into 3 sections. The 'producer' section will create test messages on a queue, the 'consumer' will consume them, and the final section, 'mq', will host the ActiveMQ instance. It would be possible to do this in a single application using an embedded broker, however I think it's useful to demonstrate them separately, as potentially the components could be on separate machines.

Continue reading
Filed under: geek, java Continue reading
12Mar/093

Bring Back Pirate Duck

I took 2 days away from work last week, and upon my return I noticed that one of my ducks from my desktop duck collection was missing. Shortly after my discovery, I received an email with a subject line of 'we have your duck'.

Continue reading