using Response object in PHP