Molto interessante questo articolo: http://php.tevac.com/artview.php?art_id=7068