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

Drobo: USB device not recognized

I swear to god. Last year, I loved Drobos — but right now? Not so sure any more. I recently had to return a 2nd generation Drobo unit. The 2nd generation Drobos have Firewire ports, while the 1st generation Drobos are sporting USB-only. The issues with this 2nd generation unit started about 2 month ago when it stopped responding via USB. Because the EEEPC Box it is hooked up to doesn’t have Firewire we couldn’t verify if it was broken entirely....

March 25, 2009 · 3 min