Update PHP code part 1