I'm coming to the end of a project and am thinking about adding some logging functionality. I'd like to write some stuff to file (or DB) and more serious errors should email me. Are there any standard (/easy) ways of doing this? This is for my work web app, hosted by dreamhost (so afaik I can't edit php.ini!).
Does dreamhost not have a php log? You should be able to have some kind of a script which you can request that they run which scans the error logs. Otherwise, if you mean "serious" errors like die(), get it to run a function which emails the error to you.
http://uk2.php.net/errorfunc http://uk2.php.net/manual/en/function.error-log.php (and others in menu) HTH