begin php part