update Ch05 PHP sample code