Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am on Windows 7 using XAMPP and am trying to write file to the default install location of C:\xampp\htdocs using a PHP script but I am getting write failures. I can write to my own user area. How can I allow PHP to write to C:\xampp\htdocs?

share|improve this question

You need to take into account the security Windows 7 has in place.
Make sure that the user which apache is running with has permissions to access and write to that location.

or you could try pointing the htdocs folder to another location such as your own home folder.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.