My plugin needs to create some directories for its use when it's executed. On many hosts (those using suPHP for example) there is no problem and everything works fine. But on other hosts, PHP does not have permission to write into the plugin's directory, and so all my directory creation attempts fail and the plugin won't work properly.
How can I deal with this? I thought I could temporarily CHMOD the plugin directory, create the things I need, then put it back... but I don't have permission to CHMOD anything either. Do I need to use chown? Or something else...?
EDIT: I've decided that the most expedient solution is to very carefully document the potential error conditions and provide extremely specific instructions to my users on what to do, should they have permissions issues. It's not the ideal situation I hoped for but hey... waddya gonna do?