How can you allow a php script to write to a file with high security restrictions, such as only allowing a single user to write to it?
The difficulty seems to be that a php script is running as a low-permissions user (maybe apache, or www, or nobody?), and even if I chown apache the_writable_file, the directory it's in might not be writable for the low-level user. In general, what's the usual way that php can work with local files in a secure way?