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, updated 2007-10-16)
Associated topics are indexed under
G996 - Well House Consultants - Newsletter Scripts [3179] Oops - I typed ci not vi, and have lost my file ... - (2011-02-21)
[2539] Changing Images - (2009-12-17)
[2433] Controlling, supressing, enabling PHP error messages - (2009-10-02)
[2360] Error Handling in Lua with assert and pcall - (2009-08-13)
[2259] Grouping rows for a summary report - MySQL and PHP - (2009-06-27)
[2145] Using the internet to remotely check for power failure at home (PHP) - (2009-04-29)
[2046] Finding variations on a surname - (2009-02-17)
[1954] mod_rewrite for newcomers - (2008-12-20)
[1813] Ajax - going Asyncronous and what it means - (2008-09-28)
[1743] First class functions in Lua lead to powerful OO facilities - (2008-08-07)
[1665] Factory method example - Perl - (2008-06-04)
[1601] Replacing the last comma with an and - (2008-04-04)
[1505] Script to present commonly used images - PHP - (2008-01-13)
[1487] Efficient PHP applications - framework and example - (2007-12-28)
[1321] Resetting session based tests in PHP - (2007-08-26)
[1217] What are factory and singleton classes? - (2007-06-04)
[1123] mysqldump and mysqlrestore - (2007-03-30)
[1066] Final, Finally and Finalize - three special words in Java - (2007-02-05)
[1001] .pdf files - upload via PHP, store in MySQL, retrieve - (2006-12-19)
H117 - Security in PHP [3210] Catchable fatal error in PHP ... How to catch, and alternative solutions such as JSON - (2011-03-22)
[2939] Protecting your images from use out of context - (2010-08-29)
[2688] Security considerations in programming - what do we teach? - (2010-03-22)
[2628] An example of an injection attack using Javascript - (2010-02-08)
[2025] Injection Attack if register_globals in on - PHP - (2009-02-04)
[1779] Injection Attacks - avoiding them in your PHP - (2008-08-31)
[1747] Who is watching you? - (2008-08-10)
[1694] Defensive coding techniques in PHP? - (2008-07-02)
[1679] PHP - Sanitised application principles for security and useability - (2008-06-16)
[1542] Are nasty programs looking for security holes on your server? - (2008-02-17)
[1482] A story about benchmarking PHP - (2007-12-23)
[1396] Using PHP to upload images / Store on MySQL database - security questions - (2007-10-19)
[1323] Easy handling of errors in PHP - (2007-08-27)
[1086] Injection attacks - safeguard your PHP scripts - (2007-02-20)
[1052] Learning to write secure, maintainable PHP - (2007-01-25)
[947] What is an SQL injection attack? - (2006-11-27)
[920] A lion in a cage - PHP - (2006-11-10)
[426] Robust checking of data entered by users - (2005-08-27)
[345] Spotting a denial of service attack - (2005-06-12)
Some other Articles
Ordnance Survey Grid Reference to Latitude / LongitudeConverting from postal address to latitude / longitudeControlling and labelling Google maps via PHPWell House Manor - a year onError logging to file not browser in PHPNew software product for warmblooded programmersDelegates of all shapes and sizesAn email update for past guests and delegatesMonitoring mod_jk and how it is load balancingFirst Great Western - information for customers