updated ch17 examples and ch14 php