- I'm trying to write to create a file in my plugin directory but I'm getting permission issues on plugin activation.
- I'm also trying to create/modify a file in the wordpress root directory (it's
ads.txtso it needs to be in the root dir to work)
How can I create both of these files in my WP plugin activation without changing permissions / owners of files?
- I can get past #1 by including empty files at
chmod 666which I'd much rather leave at
664- not sure how much of an issue this could be
- I can get past #2 by manually by
chmod theuser:theserverbut of course I want to avoid users needing to do this.