How to setup multiple stores on different domains with Magento

Multiple stores is probably the killer feature of the Magento Commerce store. It enables the needy to manage multiple stores through a single interface. Your very own mall in a box. It’s also a management/deployment nightmaredream come true. A single piece of software powering multiple websites. This small HowTo requires a working installation of Magento (tested with Magento Commerce v1.3), multiple stores setup already, an understanding of your (web)server, some shell-fu and probably root access....

April 22, 2009 · 2 min

Cannot send headers; headers already sent in , line 0

Yesterday, I started upgrading a test server to Apache 2.2 and PHP 5.2.9 and ran into this is a problem, which then bugged me for a good day. So here’s the run down: My test.php: <?php ob_start(); system('file -i -b /path/file.txt'); $contents = ob_get_contents(); ob_end_clean(); var_dump(headers_sent($file, $line), $file, $line); My test2.php: <?php $contents = shell_exec('file -i -b /path/file.txt'); $contents = trim($contents); var_dump(headers_sent($file, $line), $file, $line); test.php claims that headers were send, while test2....

April 9, 2009 · 1 min

Just add blame

I swore myself to only post meaningful stuff to this blog, so basically, no rants, ever. But! The discussion revolving around Twitter and Rails (versus Scala) did remind me of something: If you’ve doing PHP for a while and know people who are programming not in PHP, you probably heard it all before. PHP guys (and girls) are being look down on and mocked by people of other programming and scripting languages....

April 5, 2009 · 2 min

Avoiding common pitfalls with Zend_Test

Sometimes I think I’m particularly stupid when it comes to learning new things. Well, that, or maybe I’m just the only one complaining enough. ;-) I feel like I’ve wasted a great deal of time last week with basics that were nowhere to be found or required debugging to no end. The following is the outcome, a rather random list of things to watch out for when you’re starting on Zend_Test....

March 28, 2009 · 4 min

We are TestFest'ing!

English: Berlin’s PHP usergroup is taking part in PHP’s TestFest 2009, on the 9th and 10th May, 2009! The location will be Boxhagener Str. 119, Berlin (Friedrichshain), if you want to attend, please RSVP on our wiki! Starting it off, I’ll give an intro to PHPT-style testing at the monthly meeting of the usergroup in May! Deutsch: Die PHP Usergroup Berlin nimmt am PHP TestFest 2009 teil. Wir treffen uns dazu am 9....

March 25, 2009 · 1 min