Thoughts, tutorials, tips and tricks for web and mobile development

PHPUnit change http host with Symfony

Symfony is a PHP framework

A simple PHP tutorial demonstrating how to change the domain of a phpunit functional test.
This example uses a test written for the Sylius E-commerce framework and changes the domain of a Sylius channel to use a custom host entry.
The default domain is set to localhost but this causes errors when testing against different Sylius channels. This tutorial gives an example of how to overcome this issue by changing the domain within the PHP unit test.

Upgrading PCRE From 7.8 to 8.13 on a Centos 6.3 VPS

Linux penguin Tux

This is a simple guide to upgrading PCRE from 7.9 to 8.13 on a Centos 6.3 VPS.
The tutorial has step by step instructions on what command need to be used and what output to expect.
If you follow this guide correctly then the upgrade process should be relatively painless.

Choosing to finish a Symfony 1.4 site rather than rebuilding it in Symfony2

Symfony is a PHP framework

Symfony2 is the hottest PHP framework out at the moment so you would jump to the assumption that I would build all my projects in the latest and greatest.
Well last week I went against the grain and put a Symfony 1.4 site live. Not a Symfony2 site … I hear you ask!
So whats my reasoning?

Security hole found in Foursquare

I’ve just found what I believe to be a security hole on the social location site This security hole will allow an attacker who has access to a compromised mailbox to impersonate the foursquare user without changing their password.

Bjarne Stroustrup: Why I Created C++

Bjarne Stroustrup is the creator of C++ and in this video he discusses the various reasons why he created the C++ programming language. Bjarne saw a gap in the programming landscape between hardware based languages and human level applications. He combined the data abstraction concepts of Simula and the low level hardware tasks of C […]