how to check whether apache user has write privileges on a directory using php for both OS (linux and windows)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.