I am working with Zend framework and just hate the fact that I seem to encounter hundreds of exception errors like if I try to reference a non existant property of an object my application just dies …
Tag: error-handling
Error logging php – error_reporting(0) not having desired effect
I’ve got a pretty simple page which fetches a url and parse some data. I have built into my page some error handling in the event that the response is a 404 error. However, I can’t seem to stop php from spitting out the following errors Warning: file_get_contents(http://url-to-retrieve.com/123.html) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found