Sis srl

Ciarpame {.com}

Useful stuffs for the masses. Useless things for few.

Entries tagged as 'PHP'

October 16th, 2008

Interfacce e classi astratte…queste sconosciute

Ieri qualcuno mi ha chiesto se programmando in PHP avessi mai usato la keyword ‘implements’. Ho risposto “raramente, uso più spesso ‘abstract’ “. Per quanto possano essere simili interfacce e classi astratte sono però due cose ben distinte. Facciamo un po’ di chiarezza.

→ No CommentsTags: · , ,
Categories: Programming

October 13th, 2008

IE 6: header Content-disposition ignorati (ignored) !!FIXED!!

Tra tutti i browser del mondo, quello che mi da più rotture è Internet Explorer. Ho smesso anche di usarlo, ma non per sentimenti di ribellione incondizionata e pinguinosa nei confronti di Microsoft, ma perché credo che Firefox sia meglio, soprattutto se di lavoro si fa lo sviluppatore web. Nonostante tutte però gli utenti usano [...]

→ 3 CommentsTags: · , ,
Categories: Programming

June 28th, 2008

true mysql “natural order by” trick

when you develop some kind of web app (or sites containing tabular data too) and you need to order “naturally” mysql results, problems starts to come out! googling a lot I’ve found a simple trick that I’m here to share. go to: Drupal ViewVC site point to / contributions / modules / natsort / natsort.install.mysql. [...]

→ 2 CommentsTags: · , ,
Categories: Programming · Tricks

May 28th, 2008

simple history…

1 2 3 4 5 6 7 8 9 10 11 12 13 14 private $dati = array();   private function set($field, $offset, $value = array()) { if(!isset($this->dati[$field])) return false; if(!$this->isEmpty($value) AND $offset == 0) { array_unshift($this->dati[$field], trim($value)); return true; } else if(is_numeric($offset)) { array_unshift($this->dati[$field], $this->dati[$field][$offset]); return true; } else { return false; } } [...]

→ No CommentsTags: ·
Categories: archived under bho?! · rand()