This has a lot of super info on logging errors and error handling:
In short, there are two days to pipe errors to a log rather than the screen output. One way (described in the article) is by modifying the php.ini file. Another way is inline on the scripts as you write them. I put in code to that effect below (it's going into my directory while I try this out)
One thing I found: error reporting will only append a file and not make s new error log file. So, I added a blank log as a starting point and gave it generous write permissions.