how to check whether apache user has write privileges on a directory using php. (for linux and windows)
how to check whether apache user has write privileges on a directory using php for both OS (linux and win开发者_Go百科dows)
Use is_writable() on the directory.
You have to put this in a web page served by apache and call it from your browser to have it run as the same user as apache. It won't work if you call it in your terminal.
精彩评论