Tuesday, August 19. 2008
Let's kickstart this blogpost by defining what an iterator actually is. According to wikipedia, an iterator is: "an object which allows a programmer to traverse through all the elements of a collection, regardless of its specific implementation." A collection can pretty much be anything. The most obvious sources would be arrays, but other than that, iterations can be done over database resultsets, strings, datetime intervals, directories, file content and XML listings, to name a few. The real benefit of using a standard iterator implementation, is that every implemented iterator does its job obeying a standard interface. Whether said collection is a database resultset or a directory structure; it can be iterated using the same method names. And that's neat, because it will save us developers a trip to the manual on many occasions (... yeah it does... just admit it... ).
Continue reading "Implementing Iterators"
Tuesday, July 8. 2008
It's July the 8th.
Today I realized that we're exactly one month away from 8-8-8, the final blow to PHP4.
Last december, the community already stopped support for PHP4, but until the 8th of August, at least security fixes would still be done. If nothing has changed in the meantime, and I didn't read any evidence to the contrary, in 31 days from now,security fixes will no longer be provided for PHP4.
Continue reading "T minus one"
Monday, May 5. 2008
PHP is a loosely typed language. Most of the time this is very useful because you as a programmer don't have to worry about typecasting: it's done for you. However, on some occasions this can cause some unexpected trouble. These issues can be hard to track down because the error usually doesn't show up at the place where you define your variable, but at the place where you want to use them (which can be in a totally different part of your application).
In this blog I want to point out what can happen if you try to access object properties by reference when the object is not initialized. Although this is not caused by typecasting, the encountered problems can be pretty similar on some occasions.
Continue reading "Accessing object properties by reference"
Wednesday, July 25. 2007
Last week I read about the functions imagegrabscreen() and imagegrabwindow(). They were added to gdlib and are available in PHP since version 5.2.2. Because I got excited I installed the latest version of WAMP5 on my windows XP laptop (the functions are windows-only) and started typing. The examples on php.net however will not work at first when you use WAMP out-of-the-box, so this is a little how-to document about how to get it working.
Continue reading "How to use imagegrabscreen and imagegrabwindow with WAMP5"
Wednesday, July 18. 2007
Ongeveer 3 jaar geleden verwelkomde de PHP community alweer de vijfde generatie van PHP (als je PHP3 beschouwt als de eerste serieuze PHP release, dan zou je kunnen zeggen dat dit de derde major versie is).
PHP5 bracht ons een verbeterd object model, vooruitgang in performance (met name sinds PHP 5.1), een ontzettend sterke SOAP library (een webservice consumeren in 2 regels code, dat doen niet veel andere talen PHP na) en vrij veel andere verbeteringen.
Continue reading "PHP4 - het einde nadert"
Thursday, March 29. 2007
Last month I took the PHP 5 Zend certification along with a colleague of mine. Ofcourse we both studied really hard (and actually learned something new!) and tried 2 practice exams. The practice exams were said to be harder than the actual exam and since I passed both practice exams I told myself that I need not to worry about the exam. But ofcourse, I still was nervous on the morning of the exam. My husband has tremendous faith in me and kept telling me don't worry, you will pass the exam.
Continue reading "Zend PHP 5 certification"
Thursday, February 1. 2007
Nog even en dan gaat Mockatoo online. Wat het precies is, blijft nog geheim. Om een tipje van de sluier op te lichten, kan ik verklappen dat in deze gloednieuwe Web2.0 applicatie gebruik wordt gemaakt van in-page windows. Dat lijkt een mooi woord voor 'popup', en eigenlijk is dat het ook  .
Het verschil is echter, dat deze Prototype Windows in de pagina verschijnen, waarbij verschillende effecten kunnen worden gebruikt, zoals fade-in en fade-out. Daarnaast is elk window te verslepen, mimimaliseren, maximaliseren en is het met behulp van CSS compleet te stylen.
Continue reading "Prototype Windows"
Tuesday, December 19. 2006
De afgelopen week heeft er in de PHP community een discussie over de adoptie van PHP5 plaatsgevonden. Alhoewel PHP5 al geruime tijd bestaat, is het aantal servers dat PHP4 draait nog steeds aanzienlijk. Ik heb op mijn andere blog een samenvatting proberen te geven van deze discussie, verdeeld over de verschillende groepen van mensen die met PHP te maken hebben. Aanvullingen op deze samenvatting zijn uiteraard welkom.
Monday, December 4. 2006

Sinds 6 december is de nieuwe generatie van Zends ontwikkelomgeving, Zend Studio 5.5, beschikbaar. Deze versie bevat een aantal handige nieuwe features, zoals support voor PHP 5.2, code completion voor Zend Framework en verbeterde support voor webservices.
Aanstaande donderdag is er om 18.00 uur Nederlandse tijd, een webinar waarin de nieuwe features van Zend Studio 5.5 gedemonstreerd worden. De demonstratie wordt gedaan door Yossi Leon, de Product Manager van Zend Studio.
Informatie over hoe je kunt deelnemen aan deze demonstratie kun je vinden op deze pagina.
Wednesday, November 1. 2006
Tegenwoordig wordt voor steeds meer toepassingen van XML documenten gebruik gemaakt, zoals in RSS Feeds of Open Office documenten, maar ook Word zal straks z'n documenten in een XML formaat gaan opslaan. Voor de mensen die nog nooit met XML gewerkt hebben: XML is een bepaalde manier om gegevens gestructureerd vast te leggen. Deze manier is gedefinieerd en mag iedereen gebruiken. Het is ontworpen om zowel door een programma als door een mens leesbaar te zijn. XML is niet alleen geschikt om gegevens in op te slaan maar wordt de laatste tijd ook meer en meer gebruikt om gegevens via het internet te versturen.
Continue reading "XML documenten genereren"
|