Did you bother checking the result of chown?
Actually, I did. When I turned on the error reporting, I got:
chown(): Operation not permitted in /Users/tim/Sites/DispatchReports/GenerateInTime.php on line 291
also, with more digging, I found out that only "root" can be set as the owner of the file. As I asked, "... is it too much trouble?" The conclusion for me is 'Yes" for the moment. I've got bigger problems to solve first.
b) you are a member of the group assigned to the file and the group is allowed write permission on it
Since the owner & group are "_www", I added myself to that group and then used "chmod" to give w/r/x permissions to the group.
I know, not an ideal setting, but it works for now.
Oh, yeah, I can't get the error reporting to turn off in spite of:
error_reporting(0);
ini_set('display_errors', FALSE);
ini_set('display_startup_errors', FALSE);