Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.