Related resources for handle error in PHP