Parse an uploaded CSV file in 2 lines in PHP/CakePHP

Nasty but gets it done:

$delim = ','; $enc = '"'; $line = "\n";
foreach( str_getcsv ( file_get_contents( $tmpname ), $line ) as $row ) $csv[] = str_getcsv( $row, $delim, $enc ); // print_r( $csv );

or, if you want …

CakePHP mutliple checkbox input

This is just here because I always forget how to do it:

[code]echo $form->input(‘fieldname’, array(‘options’=>array(‘1’=>’val1’, ‘3’=>’val2′ […]), ‘multiple’=>’checkbox’, ‘label’=>’Da Label’));[/code]…

Mango Initial Release Draws Near

I’ve fixed most of the major bugs, and moved a few ideas I had to the next release wish list. As a final step, I must complete the help files. I plan to take care of that over the weekend …

March 2007 Mango Status Update

The Mango Initial Release is drawing near. I’ve resumed work on the project I was getting all fired up about last year – thanks to my wife – and it’s looking really good.

A few things about the plan have …

Mango – a wiki for the rest of us

This weekend, I’m hoping to release a beta of a wiki system I’m developing called ‘Mango.’οΏ½ My intention is to start off with some basic wiki functionality, get some testers, revise, then produce a version 1 release which will be …