| |||||||||||
| |||||||||||
Error logging to file not browser in PHP
When you first install PHP on your web server, any errors and warnings in you code are flagged up in the browser window. And that's ideal for development purposes - any problems are quickly indicated to you, with pointers to where the issue lies.
But when you go live, there's a different story, Of course, there shouldn't be any problems remaining ... but ... if there are, then you'll not want your user to be alerted to the detail, including the line of code in which it occurred. You can change the error behaviour of PHP through configuration switches in your php.ini file .... turning the display of errors off, and turning logging to file on. These two lines: display_errors = On log_errors = Off being replaced by these three: display_errors = Off log_errors = On error_log = /home/octoweb/oops.txt (written 2007-10-11 23:43:13) Associated topics are indexed under H117 - Security in PHP
Some other Articles
Ordnance Survey Grid Reference to Latitude / LongitudeConverting from postal address to latitude / longitude Controlling and labelling Google maps via PHP Well House Manor - a year on Error logging to file not browser in PHP New software product for warmblooded programmers Delegates of all shapes and sizes An email update for past guests and delegates Monitoring mod_jk and how it is load balancing First Great Western - information for customers 1637 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33 at 50 posts per pageThis is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price. Link to Ezine home page (for reading). Link to Blogging home page (to add comments). |
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho | |||||||||||