Big sigh. The report is created by a web app. I navigate to the URL, define my parameters for the report, click 'Export CSV', then, Safari (not I) directs the file to my Downloads directory. There's only 3 mouse clicks to download the file.
My web directory is 'KathyStringHD/Library/webserver/Documents/DispatchReports', which is not my Downloads folder.
Using terminal is not an option because I need the whole script inside a PHP file. As I say, what I am doing is uploading the report into a MySQL database. I may not be the one to download the file, and who knows if they know anything about terminal commands. The object is to have a script that goes into the downloads folder and when it finds a file containing a particular string, PHP will fold, spindle, mutilate, and delete that file. I am trying to make the execution of this script as hands-off as possible. The user would go into the web app, define and download the report, go into a browser, launch my home page, and click one button--all of six steps.
Back to my original question: "What group do I assign to my ~/Downloads folder, once for all, set the permissions so that PHP can r/w/e files in that folder"? Right now, permissions for the ~/Downloads folder is Me - r/w/e, Staff - r/w/e, Everyone - r/w/e. I needed to give 'Everyone' w/r/e permissions so that PHP would delete the file. I need to return the permissions such that Everyone has 'Read Only' access. BatChmod lists about 30 possible groups. Which one do I use?