what is the life cycle of a php script? i.e what happens when the request for php resource is made by a client.