PHP
Statistics
Last week we launched a new beta of our Swedish TV guide. It used to be based on Zend Framework 1.0 and has now been completely rewritten and upgraded to version 1.6.2. We didn’t seem to have any difficulties moving from 1.5 to 1.6 during development.
The framework is getting better and better even though I [...]
SOAP structures in PHP
Handling SOAP structures in PHP can sometimes be really annoying. If an interface is defined in the WSDL as returning an array I can’t be sure that I will get an array. If there is only one element in the array PHP tries to be clever and turn the wanted array into an object which, [...]
Calculating annuity in PHP
A collegue asked me about calculating annuity payments on loans. So I had a quick look around and found many people asking the same thing. The concept might be simple but it seems a lot of people stumble when it comes t othe algorithm.
Most of what I found was online calculators. The Swedish site rantekalkyl.se [...]
Finally namespaces
There’s a lot of whining whining about the new namespace separator these days. Not only on blogs. At first I was a bit negative towards the choice but is more and more convinced it is a good one.
First of all, few of the people complaining seem to have read the RFC documents explaining in detail [...]
Two weeks with Zend Studio for Eclipse
After more than ten years with Emacs and terminal flipping as my primary development environment, whether for C, PHP, WSDL, HTML/CSS or javascript, I decided to try (I mean really really try) an IDE for a while. As PHP is my main focus these days I have been looking towards Zend Studio for Eclipse. I [...]
Slowly coming back to life
Well, I have been gone from blogging for quite a while now. Much have happened since the last post. Most notably is that I quit my job to focus on my web development company Mesh. This resulted in a huge increase in the workload for a while. Things are settling and work is now more [...]
Setting up a development environment with apache-2.2.6
I recently bought a new laptop as my new development box. A nice 17″ screen with 1920*1200. So now I was to setup a PHP development environment for all the projects I’m working on. I downloaded Apache 2.2.6, PHP 5.2.4 and MySQL 5.0.45. I compiled and installed them and finally added a few virtual hosts. [...]
International PHP conference in Frankfurt 2007
Yesterday was the first day of the International PHP Conference. I listened to Lars Jankowfsky in his session “Practising Agile Development”. Although different methodologies were mentioned it was mainly a one day session on how Extreme programming works. The session had a good mix of fun och seriousness. One of the reasons I wanted to [...]
Reordering nested sets using PHP and Javascript
The adjancency method
Representing a tree of nodes, for example product categories, in a relational database is not hard. The most common way of doing it is to store a parentid with each node. This is also known as the adjacency list model. It is sometimes also referred to as the recursive model. Whatever the name [...]
PHP Conference
I have been to the International PHP Conference in Frankfurt a couple of times. Last year I didn’t go as the quality of the conference 2005 wasn’t what I think one should expect.
This year seems to be different though. A whole slew of interesting sessions on PHP mixed with a few sessions on agile development. [...]
