The display_errors directive in the PHP ini file ‘tells’ PHP if errors should be added to the output stream (normally printed to the screen) or if they should not be displayed in the browser.
<IMPORTANT>
It should be noted that this setting DOES NOT suppress the error. Even if the directive is set to ‘Off’ (do not [...]
PHP provides numerous error configuration options in the php.ini file. Since many people do not have the option of editing their ini file I would like to concentrate this series of posts on the ones which can be set within scripts (at run-time), more specifically ones you should consider using when creating a strategy for [...]
A few years back I had written a post about deciphering error messages, which still remains popular today. Because of the continued interest I have decided to update the original post and create a series on error reporting and handling in PHP.
When I first started learning about errors and error handling I found numerous tutorials [...]
The other day I was looking through the twitter API docs trying to get inspiration for a side project. I was thinking about creating my own twitter library for PHP, but I wanted to do something quick and dirty, just to get my feet wet, and to see how others have implemented the API in [...]
I have recently published the first part in a new series of tutorials which will look at integrating FUDforum into an existing site. Part 1 looks at how to create FUD accounts for existing users, and how to ‘notify’ FUD about things happening on your site. Basically introducing your site to FUD.
Back Story
It seems forums [...]
During this past weekend I was contacted by a client asking if I could implement a few new functionality requests on their site. Basically they wanted to slowly enter the world of Web 2.0, by implementing small tweaks to existing functionality.
I have been working with this client of a few years now and have [...]
In numerous books and articles the general consensus seems to be that for a production environment Errors and Warnings should be turned on and Notices turned off; as opposed to the development environment where error reporting should be set to E_ALL (report all errors). The reasoning behind this is, Errors and Warnings mean something [...]
We have all written scripts to upload files to a server, and for one reason or another I find that most of the time the script is intended for image uploads. Whenever you are uploading user files to the server it is very important that those files are validated to ensure the uploaded file is [...]
Several weeks ago an announcement was made on php.net that the new documentation build system was ready for testing. The announcement encourages everyone to use and test the new system. I should have started using it then, just to help out and find bugs, but I glanced over the new manual and didn’t really give [...]
Over the weekend I was visiting a friend, who has his own website. He uses PHP on the site, but he is not a programmer. The site is his hobby and he has only learned enough PHP to get the job done. Simply put this is not his occupation.
While visiting he was in the [...]