updated php and cli samples