Archives

  • SPL: Using the iteratorAggregate interface

    The SPL is one of hardest things to grasp for most PHP developers. But why is this? The lack of documentation inside the manual, the fact that there are not many real-life examples, or maybe it’s just too hard? In this post I will try to explain a bit more about the “iteratorAggregate” interface. Together [...]

    Dec 4th, 2011 | Filed under Development, PHP
    Tags: , ,
  • Public key encryption on php|architect

    Yesterday the February edition of php|architect came out. I always look forward upon the new release every month, but even more so this month since it features an article about “Public Key Encryption” I’ve written for php|a. It’s more or less a written version of my public key authentication 101 talk and consists of not [...]

    Mar 1st, 2011 | Filed under Misc, PHP
  • Talking at the PHP Benelux 2011

    As you might know, the PHPBenelux Conference 2011 is right around the corner. Happy to inform you that not only will I attend, but also will be speaking at this event. My talk will be about the awesome things you can do with Sed & Awk. Not necessarily a talk you would expect on a [...]

    Jan 23rd, 2011 | Filed under PHP
  • Using syslog for your php applications

    Linux, and other unices have an excellent system to centralize log events. This is done through syslog. This system removes the need for every application to maintain their own log files and let the syslog server handle all the events. Depending on the type of event that is logged, it can take additional action like [...]

    Jan 12th, 2011 | Filed under Development, PHP, Server & Admin
  • PHP 5.4: RegexIterator::getRegex()

    Recently, my colleague Jeroen van Dijk needed to extend (or better yet: override) the accept() method for the RegexIterator. Turns out this wasn’t as easy as it might sound in practice. So after extending and overriding multiple methods he found an acceptable solution. But there is room for improvement. And starting from PHP 5.4, this [...]

    Jan 6th, 2011 | Filed under Development, PHP
  • Enrise: Appending the appenditerator

    I’ve posted a blog at the @enrise techblog about enhancing SPL’s appenditerator. This lovely iterator can be useful from time to time but it does not always do what you need. Here’s how you can easily create your own iterator: http://www.enrise.com/2010/12/appending-the-appenditerator/ At Enrise, we decided to start blogging more about our projects, the techniques we [...]

    Dec 26th, 2010 | Filed under PHP
  • OAuth timestamps and nonces

    Oauth is a very popular authentication mechanism used for a lot of web applications. And not without good reasons. It is relatively easy to implement, has different flavours (2-legged, 3-legged system) so you can use almost anywhere that requires authentication and authorization. This post is not about how to implement oauth. That can be found [...]

    Dec 16th, 2010 | Filed under Development, PHP, Server & Admin
  • PHP srand problems with suhosin

    Today I stumbled across an odd problem which took me about an hour to figure out what was going on. It had to do with mt_srand(), where it looked like it didn’t work properly. I needed a repeatable sequence of random numbers (which is EXACTLY what the Mersenne Twister produces) so I used mt_srand() with [...]

    Dec 13th, 2010 | Filed under PHP
    Tags: , ,
  • Encryption operating modes: ECB vs CBC

    Today I overheard two colleagues discussing one of my favorite subjects: encryption. The discussion was about that encrypting data (with a normal block cipher) was working perfectly in ECB mode, but not in CBC mode. So, this all leads up to the question: what is ECB and CBC? And when should you use them? Although [...]

    Dec 8th, 2010 | Filed under Development, PHP, Server & Admin
  • Top-5 certifications for every PHP programmer

    Today I’ve passed the Zend Framework Certification exam and with that I can finally close my new years resolution for 2010: doing 12 (tech related) exams in 2010. So I’ve seen a lot of exams, good ones and bad ones and I want to share with you my experience by creating a top-5 of must-have [...]

    Dec 3rd, 2010 | Filed under Development, PHP
Archive for the ‘PHP’ Category